X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/392b68a65fd6ffa521b89e079b234bb0241380d3..870e9e41e3c2b23b8b5e6730d91ea9ad1c89463d:/test/factories/user_blocks.rb diff --git a/test/factories/user_blocks.rb b/test/factories/user_blocks.rb index 8f7edaf6e..d206511b4 100644 --- a/test/factories/user_blocks.rb +++ b/test/factories/user_blocks.rb @@ -1,4 +1,4 @@ -FactoryGirl.define do +FactoryBot.define do factory :user_block do sequence(:reason) { |n| "User Block #{n}" } ends_at Time.now + 1.day @@ -15,8 +15,7 @@ FactoryGirl.define do end trait :revoked do - # FIXME: requires User factory - revoker_id 5 + association :revoker, :factory => :moderator_user end end end