]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/friends.rb
Set image dimensions in order to avoid a reflow after the page is drawn by the browser
[rails.git] / test / factories / friends.rb
index 46b14a39daea3860cd2de3cebbe80f6255b7650a..15317ee0cb51e863b66b7cc21ee98d6d13c117e4 100644 (file)
@@ -1,7 +1,6 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :friend 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
   end
 end