X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6edb8dae058979f9c5cb198ad4f7af3f700ba84b..cf9831c0af4ba06d246176a763c6346259aa6e36:/test/controllers/api/relations_controller_test.rb diff --git a/test/controllers/api/relations_controller_test.rb b/test/controllers/api/relations_controller_test.rb index 9e2972495..f585c5c2c 100644 --- a/test/controllers/api/relations_controller_test.rb +++ b/test/controllers/api/relations_controller_test.rb @@ -1043,7 +1043,7 @@ module Api # that the bounding box will be newly-generated. with_controller(Api::ChangesetsController.new) do xml = "" - put changeset_create_path, :params => xml, :headers => auth_header + post api_changesets_path, :params => xml, :headers => auth_header assert_response :forbidden, "shouldn't be able to create changeset for modify test, as should get forbidden" end @@ -1054,7 +1054,7 @@ module Api # that the bounding box will be newly-generated. changeset_id = with_controller(Api::ChangesetsController.new) do xml = "" - put changeset_create_path, :params => xml, :headers => auth_header + post api_changesets_path, :params => xml, :headers => auth_header assert_response :success, "couldn't create changeset for modify test" @response.body.to_i end