Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
jmilljr24 committed Dec 20, 2024
1 parent 419f070 commit b7bf141
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/services/organizations/csv_import_service_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class CsvImportServiceTest < ActiveSupport::TestCase
assert_turbo_stream_broadcasts ["csv_import", @adopter]
turbo_stream = capture_turbo_stream_broadcasts ["csv_import", @adopter]
assert_equal "File scanned: 1 error(s) present", turbo_stream.first.at_css(".alert-heading").text.strip
assert_equal 'The column header "Email" was not found in the attached csv', errors.first[1].message
assert_equal 'The column header "Email" was not found in the attached csv', errors.first[1].message
end

should "validate Timestamp header" do
Expand All @@ -167,6 +167,7 @@ class CsvImportServiceTest < ActiveSupport::TestCase
assert_turbo_stream_broadcasts ["csv_import", @adopter]
turbo_stream = capture_turbo_stream_broadcasts ["csv_import", @adopter]
assert_equal "File scanned: 1 error(s) present", turbo_stream.first.at_css(".alert-heading").text.strip
assert_equal 'The column header "Timestamp" was not found in the attached csv', errors.first[1].message end
assert_equal 'The column header "Timestamp" was not found in the attached csv', errors.first[1].message
end
end
end

0 comments on commit b7bf141

Please sign in to comment.