]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/site_controller_test.rb
Refactor deletion tests in way_controller_test to use factories.
[rails.git] / test / controllers / site_controller_test.rb
index 60826364320b979bed79c248b6a3c8ae56c53ff8..a4388ef6c1d50c1c08100b6b85f4cd36ff1c9658 100644 (file)
@@ -241,7 +241,7 @@ class SiteControllerTest < ActionController::TestCase
   # Test editing a specific node
   def test_edit_with_node
     user = create(:user)
-    node = current_nodes(:visible_node)
+    node = create(:node, :lat => 1.0, :lon => 1.0)
 
     get :edit, { :node => node.id }, { :user => user }
     assert_response :success