# 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 "<osm><changeset/></osm>"
put :create
assert_response :forbidden, "shouldn't be able to create changeset for modify test, as should get forbidden"
# 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 "<osm><changeset/></osm>"
put :create
assert_response :success, "couldn't create changeset for modify test"
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}"
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