Make api changeset show path resourceful

This commit is contained in:
Anton Khorev 2025-02-20 02:34:51 +03:00
parent 4482ed6d27
commit a297e2ccdc
5 changed files with 42 additions and 45 deletions

View file

@ -1064,7 +1064,7 @@ module Api
# now download the changeset to check its bounding box
with_controller(Api::ChangesetsController.new) do
get changeset_show_path(changeset_id)
get api_changeset_path(changeset_id)
assert_response :success, "can't re-read changeset for modify test"
assert_select "osm>changeset", 1, "Changeset element doesn't exist in #{@response.body}"
assert_select "osm>changeset[id='#{changeset_id}']", 1, "Changeset id=#{changeset_id} doesn't exist in #{@response.body}"