X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a..083500f056f5b995f1979f88b37793046d9e4d37:/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 e08fbb65e..346634f7d 100644 --- a/test/controllers/old_node_controller_test.rb +++ b/test/controllers/old_node_controller_test.rb @@ -55,7 +55,7 @@ class OldNodeControllerTest < ActionController::TestCase versions[xml_node["version"]] = xml_doc.to_s # randomly move the node about - 20.times do + 3.times do # move the node somewhere else xml_node["lat"] = precision(rand * 180 - 90).to_s xml_node["lon"] = precision(rand * 360 - 180).to_s @@ -70,7 +70,7 @@ class OldNodeControllerTest < ActionController::TestCase end # add a bunch of random tags - 30.times do + 3.times do xml_tag = XML::Node.new("tag") xml_tag["k"] = random_string xml_tag["v"] = random_string @@ -105,7 +105,7 @@ class OldNodeControllerTest < ActionController::TestCase versions[xml_node["version"]] = xml_doc.to_s # randomly move the node about - 20.times do + 3.times do # move the node somewhere else xml_node["lat"] = precision(rand * 180 - 90).to_s xml_node["lon"] = precision(rand * 360 - 180).to_s @@ -120,7 +120,7 @@ class OldNodeControllerTest < ActionController::TestCase end # add a bunch of random tags - 30.times do + 3.times do xml_tag = XML::Node.new("tag") xml_tag["k"] = random_string xml_tag["v"] = random_string @@ -161,7 +161,7 @@ class OldNodeControllerTest < ActionController::TestCase get :version, :params => { :id => id, :version => version } assert_response :not_found rescue ActionController::UrlGenerationError => ex - assert_match /No route matches/, ex.to_s + assert_match(/No route matches/, ex.to_s) end ##