X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/95eda2d38103318a4c3c3f0c901d8e6ea86eac1e..5b33f3f8e31c62bc3e5db1d5b120533c3afdde68:/test/controllers/changeset_controller_test.rb diff --git a/test/controllers/changeset_controller_test.rb b/test/controllers/changeset_controller_test.rb index db0ee5e96..c12f1d902 100644 --- a/test/controllers/changeset_controller_test.rb +++ b/test/controllers/changeset_controller_test.rb @@ -327,22 +327,22 @@ class ChangesetControllerTest < ActionController::TestCase # simple diff to change a node, way and relation by removing # their tags - diff = < - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + EOF # upload it @@ -357,22 +357,22 @@ EOF # simple diff to change a node, way and relation by removing # their tags - diff = < - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + EOF # upload it @@ -387,22 +387,22 @@ EOF # simple diff to change a node, way and relation by removing # their tags - diff = < - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + EOF # upload it @@ -429,25 +429,25 @@ EOF basic_authorization user.email, "test" # simple diff to create a node way and relation using placeholders - diff = < - - - - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + + + + EOF # upload it @@ -509,7 +509,7 @@ EOF delete << used_node.to_xml_node # update the changeset to one that this user owns - %w(node way relation).each do |type| + %w[node way relation].each do |type| delete.find("//osmChange/delete/#{type}").each do |n| n["changeset"] = changeset.id.to_s end @@ -582,29 +582,29 @@ EOF # upload some widely-spaced nodes, spiralling positive and negative to cause # largest bbox over-expansion possible. - diff = < - - - - - - - - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + + + + + + + + EOF # upload it, which used to cause an error like "PGError: ERROR: @@ -645,7 +645,7 @@ EOF delete << used_node.to_xml_node # update the changeset to one that this user owns - %w(node way relation).each do |type| + %w[node way relation].each do |type| delete.find("//osmChange/delete/#{type}").each do |n| n["changeset"] = changeset.id.to_s end @@ -689,7 +689,7 @@ EOF delete << used_node.to_xml_node # update the changeset to one that this user owns - %w(node way relation).each do |type| + %w[node way relation].each do |type| delete.find("//osmChange/delete/#{type}").each do |n| n["changeset"] = changeset.id.to_s end @@ -739,14 +739,14 @@ EOF basic_authorization changeset.user.email, "test" # simple diff to create a node way and relation using placeholders - diff = < - - - - - - + diff = < + + + + + + EOF # upload it @@ -770,26 +770,26 @@ EOF basic_authorization changeset.user.email, "test" # simple diff to create a node way and relation using placeholders - diff = < - - - - - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + + + + + EOF # upload it @@ -832,28 +832,28 @@ EOF basic_authorization changeset.user.email, "test" # simple diff to create a node way and relation using placeholders - diff = < - - - - - - - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + + + + + + + EOF # upload it @@ -878,19 +878,19 @@ EOF # change the location of a node multiple times, each time referencing # the last version. doesn't this depend on version numbers being # sequential? - diff = < - - - - - - - - - - - + diff = < + + + + + + + + + + + EOF # upload it @@ -914,13 +914,13 @@ EOF basic_authorization changeset.user.email, "test" - diff = < - - - - - + diff = < + + + + + EOF # upload it @@ -937,12 +937,12 @@ EOF basic_authorization changeset.user.email, "test" - diff = < - - - - + diff = < + + + + EOF # upload it @@ -959,12 +959,12 @@ EOF basic_authorization changeset.user.email, "test" - diff = < - - - - + diff = < + + + + EOF content diff post :upload, :id => changeset.id @@ -985,18 +985,18 @@ EOF basic_authorization changeset.user.email, "test" - diff = < - - - - - - - + diff = < + + + + + + + EOF # upload it @@ -1021,20 +1021,20 @@ EOF basic_authorization changeset.user.email, "test" - diff = < - - - - - - - - - - - - + diff = < + + + + + + + + + + + + EOF # upload it @@ -1056,14 +1056,14 @@ EOF basic_authorization changeset.user.email, "test" - diff = < - - - - - - + diff = < + + + + + + EOF # upload it @@ -1082,20 +1082,20 @@ EOF basic_authorization changeset.user.email, "test" - diff = < - - - - - - - - - - - - + diff = < + + + + + + + + + + + + EOF # upload it @@ -1106,20 +1106,20 @@ EOF assert_equal "Placeholder node not found for reference -4 in way -1", @response.body # the same again, but this time use an existing way - diff = < - - - - - - - - - - - - + diff = < + + + + + + + + + + + + EOF # upload it @@ -1139,20 +1139,20 @@ EOF basic_authorization changeset.user.email, "test" - diff = < - - - - - - - - - - - - + diff = < + + + + + + + + + + + + EOF # upload it @@ -1163,20 +1163,20 @@ EOF assert_equal "Placeholder Node not found for reference -4 in relation -1.", @response.body # the same again, but this time use an existing relation - diff = < - - - - - - - - - - - - + diff = < + + + + + + + + + + + + EOF # upload it @@ -1342,19 +1342,19 @@ EOF changeset_id = @response.body.to_i # add a diff to it - diff = < - - - - - - - - - - - + diff = < + + + + + + + + + + + EOF # upload it @@ -1387,33 +1387,33 @@ EOF assert_response :success changeset_id = @response.body.to_i - diff = < - - - - - - - - - - - - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + + + + + + + + + + + + OSMFILE # upload it @@ -1450,26 +1450,26 @@ OSMFILE changeset_id = @response.body.to_i # add a diff to it - diff = < - - - - - - - - - - - - - - - - - - + diff = < + + + + + + + + + + + + + + + + + + EOF # upload it