Some improvements to the error messages that are returned by the api.
This commit is contained in:
parent
1375095343
commit
8348493ccb
4 changed files with 17 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue