Some improvements to the error messages that are returned by the api.
[rails.git] / test / functional / relation_controller_test.rb
index b8d15e5294f43f0c17d20ef9708cc05e9c175bd9..4ace316a4e96ab479abf152b9a669d1e4fa13d5f 100644 (file)
@@ -276,7 +276,8 @@ class RelationControllerTest < ActionController::TestCase
     # try to delete without specifying a changeset
     content "<osm><relation id='#{current_relations(:visible_relation).id}'/></osm>"
     delete :delete, :id => current_relations(:visible_relation).id
-    assert_response :conflict
+    assert_response :bad_request
+    assert_match(/You are missing the required changeset in the relation/, @response.body)
 
     # try to delete with an invalid (closed) changeset
     content update_changeset(current_relations(:visible_relation).to_xml,