X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/037585db3933a2954b43bd4b30ea5e30ade00be2..8b03371e106a52a20971cc8ab6535de93ece692e:/test/controllers/relation_controller_test.rb
diff --git a/test/controllers/relation_controller_test.rb b/test/controllers/relation_controller_test.rb
index bb9286f1d..ab0aca45e 100644
--- a/test/controllers/relation_controller_test.rb
+++ b/test/controllers/relation_controller_test.rb
@@ -165,8 +165,8 @@ class RelationControllerTest < ActionController::TestCase
# This time try with a role attribute in the relation
nid = current_nodes(:used_node_1).id
content "" +
- "" +
- ""
+ "" +
+ ""
put :create
# hope for forbidden due to user
assert_response :forbidden,
@@ -177,7 +177,7 @@ class RelationControllerTest < ActionController::TestCase
# need a role attribute to be included
nid = current_nodes(:used_node_1).id
content "" +
- "" + ""
+ "" + ""
put :create
# hope for forbidden due to user
assert_response :forbidden,
@@ -188,9 +188,9 @@ class RelationControllerTest < ActionController::TestCase
nid = current_nodes(:used_node_1).id
wid = current_ways(:used_way).id
content "" +
- "" +
- "" +
- ""
+ "" +
+ "" +
+ ""
put :create
# hope for forbidden, due to user
assert_response :forbidden,
@@ -233,8 +233,8 @@ class RelationControllerTest < ActionController::TestCase
# This time try with a role attribute in the relation
nid = current_nodes(:used_node_1).id
content "" +
- "" +
- ""
+ "" +
+ ""
put :create
# hope for success
assert_response :success,
@@ -265,7 +265,7 @@ class RelationControllerTest < ActionController::TestCase
# need a role attribute to be included
nid = current_nodes(:used_node_1).id
content "" +
- "" + ""
+ "" + ""
put :create
# hope for success
assert_response :success,
@@ -296,9 +296,9 @@ class RelationControllerTest < ActionController::TestCase
nid = current_nodes(:used_node_1).id
wid = current_ways(:used_way).id
content "" +
- "" +
- "" +
- ""
+ "" +
+ "" +
+ ""
put :create
# hope for success
assert_response :success,
@@ -412,8 +412,8 @@ class RelationControllerTest < ActionController::TestCase
# create a relation with non-existing node as member
content "" +
- "" +
- ""
+ "" +
+ ""
put :create
# expect failure
assert_response :precondition_failed,
@@ -432,8 +432,8 @@ class RelationControllerTest < ActionController::TestCase
# create some xml that should return an error
content "" +
- "" +
- ""
+ "" +
+ ""
put :create
# expect failure
assert_response :bad_request
@@ -607,8 +607,7 @@ class RelationControllerTest < ActionController::TestCase
[current_nodes(:used_node_1),
current_nodes(:used_node_2),
current_ways(:used_way),
- current_ways(:way_with_versions)
- ].each_with_index do |element, _version|
+ current_ways(:way_with_versions)].each_with_index do |element, _version|
bbox = element.bbox.to_unscaled
check_changeset_modify(bbox) do |changeset_id|
relation_xml = Relation.find(relation_id).to_xml
@@ -963,7 +962,7 @@ OSM
a_tags.each do |k, v|
assert_equal v, b_tags[k],
"Tags which were not altered should be the same. " +
- "#{a_tags.inspect} != #{b_tags.inspect}"
+ "#{a_tags.inspect} != #{b_tags.inspect}"
end
end