X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/35be1120925e43b6c2aaf470a13aebae25cddb51..7725cd59b41a622a634a447d33fbda738a472748:/test/controllers/old_node_controller_test.rb diff --git a/test/controllers/old_node_controller_test.rb b/test/controllers/old_node_controller_test.rb index 226662c18..f2658b123 100644 --- a/test/controllers/old_node_controller_test.rb +++ b/test/controllers/old_node_controller_test.rb @@ -51,7 +51,7 @@ class OldNodeControllerTest < ActionController::TestCase # randomly move the node about 20.times do # move the node somewhere else - xml_node["lat"] = precision(rand * 180 - 90).to_s + xml_node["lat"] = precision(rand * 180 - 90).to_s xml_node["lon"] = precision(rand * 360 - 180).to_s with_controller(NodeController.new) do content xml_doc @@ -100,7 +100,7 @@ class OldNodeControllerTest < ActionController::TestCase # randomly move the node about 20.times do # move the node somewhere else - xml_node["lat"] = precision(rand * 180 - 90).to_s + xml_node["lat"] = precision(rand * 180 - 90).to_s xml_node["lon"] = precision(rand * 360 - 180).to_s with_controller(NodeController.new) do content xml_doc @@ -147,7 +147,7 @@ class OldNodeControllerTest < ActionController::TestCase check_not_found_id_version(70000, 312344) check_not_found_id_version(-1, -13) check_not_found_id_version(nodes(:visible_node).id, 24354) - check_not_found_id_version(24356, nodes(:visible_node).version) + check_not_found_id_version(24356, nodes(:visible_node).version) end def check_not_found_id_version(id, version)