Verify that the key and value isn't getting mixed up by having them different. verify...
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 17 Nov 2008 15:00:19 +0000 (15:00 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 17 Nov 2008 15:00:19 +0000 (15:00 +0000)
test/functional/changeset_controller_test.rb

index 2b8fa360a8b3cba9f7ee2d24f639b4eac5e92ed0..d5fc08116f6d6fda9076f106cdb20feebc701710 100644 (file)
@@ -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
   
   ##