Skip to content

Commit 9eff81d

Browse files
committed
Fix misconfigured test
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
1 parent 53aaf7d commit 9eff81d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/sitemap_controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SitemapControllerTest < ActionController::TestCase
2121

2222
assert_response :success
2323

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

0 commit comments

Comments
 (0)