]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/relation_controller_test.rb
Adding some amf create poi tests. Minor bugfix tweaks to the amf controller
[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,