]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/old_node.rb
Use factories for all factory associations.
[rails.git] / test / factories / old_node.rb
index 403ffc0ea04b539c0ad2b4a5fea8463104c5b77d..3eda91a539a0e01b5e84cd056fa2e9c9cff00b25 100644 (file)
@@ -4,9 +4,7 @@ FactoryGirl.define do
     longitude 1 * GeoRecord::SCALE
 
     changeset
-
-    # FIXME: needs node factory
-    node_id 1000
+    association :current_node, :factory => :node
 
     visible true
     timestamp Time.now