]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/user_blocks.rb
Merge remote-tracking branch 'openstreetmap/pull/1469'
[rails.git] / test / factories / user_blocks.rb
index b73e599b864757b370adda699951a4fc221a5a43..8f7edaf6e2f4444fda84ca7b1b4fb3fdd04a05d6 100644 (file)
@@ -3,11 +3,8 @@ FactoryGirl.define do
     sequence(:reason) { |n| "User Block #{n}" }
     ends_at Time.now + 1.day
 
-    # FIXME: requires User factory
-    user_id 13
-
-    # FIXME: requires User factory
-    creator_id 15
+    user
+    association :creator, :factory => :moderator_user
 
     trait :needs_view do
       needs_view true