From: Shaun McDonald Date: Mon, 17 Nov 2008 15:00:19 +0000 (+0000) Subject: Verify that the key and value isn't getting mixed up by having them different. verify... X-Git-Tag: live~8410^2~144 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5254f79c080b398ffe2f2400dea250c6decf5e3b?hp=28839fd1504004bd10f30eeba3d7212c77adfbb4 Verify that the key and value isn't getting mixed up by having them different. verify the error message is the same when returning the user conflict on closing changeset test. --- diff --git a/test/functional/changeset_controller_test.rb b/test/functional/changeset_controller_test.rb index 2b8fa360a..d5fc08116 100644 --- a/test/functional/changeset_controller_test.rb +++ b/test/functional/changeset_controller_test.rb @@ -64,6 +64,7 @@ class ChangesetControllerTest < ActionController::TestCase put :close, :id => changesets(:normal_user_first_change).id assert_response :conflict + assert_equal "The user doesn't own that changeset", @response.body end ## @@ -636,8 +637,8 @@ EOF changeset = changesets(:normal_user_first_change) new_changeset = changeset.to_xml new_tag = XML::Node.new "tag" - new_tag['k'] = "testing" - new_tag['v'] = "testing" + new_tag['k'] = "tagtesting" + new_tag['v'] = "valuetesting" new_changeset.find("//osm/changeset").first << new_tag content new_changeset @@ -646,7 +647,7 @@ EOF assert_select "osm>changeset[id=#{changeset.id}]", 1 assert_select "osm>changeset>tag", 2 - assert_select "osm>changeset>tag[k=testing][v=testing]", 1 + assert_select "osm>changeset>tag[k=tagtesting][v=valuetesting]", 1 end ##