X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7a396e9dc9a7f4097218032a882080403e668bf6..d3e91a79ff3ab35006b233d39e059ffa406ba443:/test/controllers/changeset_controller_test.rb diff --git a/test/controllers/changeset_controller_test.rb b/test/controllers/changeset_controller_test.rb index c0af4021e..cb584759a 100644 --- a/test/controllers/changeset_controller_test.rb +++ b/test/controllers/changeset_controller_test.rb @@ -812,9 +812,7 @@ CHANGESET assert_equal 2, Node.find(new_node_id).tags.size, "new node should have two tags" assert_equal [new_node_id, node.id], Way.find(way.id).nds, "way nodes should match" Relation.find(relation.id).members.each do |type, id, _role| - if type == "node" - assert_equal new_node_id, id, "relation should contain new node" - end + assert_equal new_node_id, id, "relation should contain new node" if type == "node" end end @@ -2277,7 +2275,6 @@ CHANGESET end assert_response :not_found - # trying to subscribe when already subscribed changeset = create(:changeset, :closed) changeset.subscribers.push(user)