]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/node_test.rb
Don't pass ActiveRecord objects to find and exists?
[rails.git] / test / models / node_test.rb
index 7acc6168f73a518f499a147793a5d256aab3cfee..612bff7034d51eb01f678dc10ae2e5f1af8939c1 100644 (file)
@@ -137,7 +137,7 @@ class NodeTest < ActiveSupport::TestCase
   end
 
   def test_delete
-    node_template = Node.find(current_nodes(:visible_node))
+    node_template = Node.find(current_nodes(:visible_node).id)
     assert_not_nil node_template
 
     assert_equal OldNode.where(:node_id => node_template.id).count, 1