]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/node_controller_test.rb
Merge branch 'master' into notes
[rails.git] / test / functional / node_controller_test.rb
index 5544728f194b9ae624e2c0fac27f4e6fbfb03f30..6903dd60b425e7a68e5db5f33ccb135db9d1cfc4 100644 (file)
@@ -231,9 +231,9 @@ class NodeControllerTest < ActionController::TestCase
     assert @response.body.to_i > current_nodes(:public_visible_node).version,
        "delete request should return a new version number for node"
 
-    # this won't work since the node is already deleted
-    content(nodes(:invisible_node).to_xml)
-    delete :delete, :id => current_nodes(:invisible_node).id
+    # deleting the same node twice doesn't work
+    content(nodes(:public_visible_node).to_xml)
+    delete :delete, :id => current_nodes(:public_visible_node).id
     assert_response :gone
 
     # this won't work since the node never existed