]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/friends.rb
For deleted nodes created via factories, make sure the most recent old_node is also...
[rails.git] / test / factories / friends.rb
index 46b14a39daea3860cd2de3cebbe80f6255b7650a..749846edbe0200f2ef087613cf0eda7905def1db 100644 (file)
@@ -1,7 +1,6 @@
 FactoryGirl.define do
   factory :friend do
-    # Fixme requires User Factory
-    user_id 1
-    friend_user_id 2
+    association :befriender, :factory => :user
+    association :befriendee, :factory => :user
   end
 end