X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e430bc0f7f90d2765aa0218093e518d21b9173b1..8a02d33bec667a42a5057d45bc42e2aa00bd7084:/test/controllers/changesets_controller_test.rb diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index fbbb36f3f..79fd7a571 100644 --- a/test/controllers/changesets_controller_test.rb +++ b/test/controllers/changesets_controller_test.rb @@ -164,7 +164,7 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest get friend_changesets_path assert_response :redirect - assert_redirected_to :controller => :users, :action => :login, :referer => friend_changesets_path + assert_redirected_to login_path(:referer => friend_changesets_path) session_for(private_user) @@ -190,7 +190,7 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest get nearby_changesets_path assert_response :redirect - assert_redirected_to :controller => :users, :action => :login, :referer => nearby_changesets_path + assert_redirected_to login_path(:referer => nearby_changesets_path) session_for(private_user) @@ -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/ @@ -329,6 +329,14 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest changesets.each do |changeset| assert_select "> entry > id", changeset_url(:id => changeset.id) + + assert_select "> entry > content > xhtml|div > xhtml|table" do + assert_select "> xhtml|tr > xhtml|td > xhtml|table" do + changeset.tags.each do |key, _| + assert_select "> xhtml|tr > xhtml|td", :text => /^#{key} = / + end + end + end end end end