]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/node_controller_test.rb
Fix new rubocop warnings
[rails.git] / test / controllers / node_controller_test.rb
index 42b63bdf64910678dfa0c103aeff4ffe3f784ce4..5f737f798a57c26a0a102739bfe62a013baa2ed7 100644 (file)
@@ -33,8 +33,8 @@ class NodeControllerTest < ActionController::TestCase
     changeset = create(:changeset, :user => user)
 
     # create a node with random lat/lon
-    lat = rand(100) - 50 + rand
-    lon = rand(100) - 50 + rand
+    lat = rand(-50..50) + rand
+    lon = rand(-50..50) + rand
 
     ## First try with no auth
     # create a minimal xml file