X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6ca22de4f2c68e4b14a6e2f0938a8657c33adc31..28e011e2193148092e4c3dfe296ab29b7721d5d4:/test/controllers/relations_controller_test.rb diff --git a/test/controllers/relations_controller_test.rb b/test/controllers/relations_controller_test.rb index 1613fbf7a..224caa642 100644 --- a/test/controllers/relations_controller_test.rb +++ b/test/controllers/relations_controller_test.rb @@ -939,7 +939,7 @@ OSM # create a new changeset for this operation, so we are assured # that the bounding box will be newly-generated. - changeset_id = with_controller(ChangesetController.new) do + changeset_id = with_controller(ChangesetsController.new) do content "" put :create assert_response :forbidden, "shouldn't be able to create changeset for modify test, as should get forbidden" @@ -950,7 +950,7 @@ OSM # create a new changeset for this operation, so we are assured # that the bounding box will be newly-generated. - changeset_id = with_controller(ChangesetController.new) do + changeset_id = with_controller(ChangesetsController.new) do content "" put :create assert_response :success, "couldn't create changeset for modify test" @@ -961,7 +961,7 @@ OSM yield changeset_id # now download the changeset to check its bounding box - with_controller(ChangesetController.new) do + with_controller(ChangesetsController.new) do get :read, :params => { :id => 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}" @@ -1019,7 +1019,7 @@ OSM cs_id = rel.find("//osm/relation").first["changeset"].to_i version = nil - with_controller(ChangesetController.new) do + with_controller(ChangesetsController.new) do doc = OSM::API.new.get_xml_doc change = XML::Node.new "osmChange" doc.root = change