X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e34b62fac7d0a9a7b03e92bdf26f691736e2954..3776adcfc0404413f85ba77000fcf5a42f33d3f5:/test/controllers/changesets_controller_test.rb diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index a71b5e8fe..d9a4b256b 100644 --- a/test/controllers/changesets_controller_test.rb +++ b/test/controllers/changesets_controller_test.rb @@ -321,7 +321,7 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest ## # check the result of a feed def check_feed_result(changesets) - assert changesets.size <= 20 + assert_operator changesets.size, :<=, 20 assert_select "feed", :count => [changesets.size, 1].min do assert_select "> title", :count => 1, :text => /^Changesets/ @@ -332,7 +332,7 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest assert_select "> entry > content > xhtml|div > xhtml|table" do assert_select "> xhtml|tr > xhtml|td > xhtml|table" do - changeset.tags.each do |key, _| + changeset.tags.each_key do |key| assert_select "> xhtml|tr > xhtml|td", :text => /^#{key} = / end end