Some improvements to the error messages that are returned by the api.

This commit is contained in:
Shaun McDonald 2008-11-25 18:59:35 +00:00
parent 1375095343
commit 8348493ccb
4 changed files with 17 additions and 14 deletions

View 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,