Skip to content

Commit

Permalink
pro app test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
neonwatty committed Feb 16, 2025
1 parent 3b67754 commit 2212ca5
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
require "application_system_test_case"

class ImageToTextsTest < ApplicationSystemTestCase
setup do
@image_to_texts = image_to_texts(:one, :two)
end


test "visiting the index" do
visit settings_image_to_texts_url
assert_selector "h1", text: "Available models"
end

test "updating the current model to all available models" do
# collect all available model names by id
model_names = ImageToText.all.map { |model| model.name }
model_ids = ImageToText.all.map { |model| model.id }
model_names = @image_to_texts.map { |model| model.name }
model_ids = @image_to_texts.map { |model| model.id }

# iterate through names by index
model_names.each_with_index do |model_name, index|
Expand Down

0 comments on commit 2212ca5

Please sign in to comment.