Skip to content

Commit

Permalink
Fix misconfigured test
Browse files Browse the repository at this point in the history
This test needs the second argument to be a hash, the third argument is
intended for error message. This change is required for
rails-dom-testing 2.1.0 which now raises an error if you have a
misconfigured test (it was previously silent) [1].

[1]: rails/rails-dom-testing#96
  • Loading branch information
kevindew committed Jul 10, 2023
1 parent 53aaf7d commit 9eff81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/sitemap_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SitemapControllerTest < ActionController::TestCase

assert_response :success

assert_select "url > loc", "http://www.dev.gov.uk/test-path", count: 1
assert_select "url > loc", { text: "http://www.dev.gov.uk/test-path", count: 1 }
end
end

Expand Down

0 comments on commit 9eff81d

Please sign in to comment.