]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/changeset_controller_test.rb
Tests for PreconditionFailed error messages.
[rails.git] / test / functional / changeset_controller_test.rb
index a6eeaeeebd7911f02ae1c383a2e355af91bbc671..ce739b96c5cf5c217d8d3d46c9c6c11b2865d507 100644 (file)
@@ -397,6 +397,7 @@ EOF
     post :upload, :id => 2
     assert_response :precondition_failed, 
       "shouldn't be able to upload a invalid deletion diff: #{@response.body}"
+    assert_equal "Precondition failed: Way 3 still used by relation 1.", @response.body
 
     # check that nothing was, in fact, deleted
     assert_equal true, Node.find(current_nodes(:node_used_by_relationship).id).visible