Fix FactoryBot deprecation warnings

This commit is contained in:
Tom Hughes 2018-08-28 19:12:01 +01:00
parent 6c597f614b
commit 06915a77b5
22 changed files with 70 additions and 70 deletions

View file

@ -1,17 +1,17 @@
FactoryBot.define do
factory :user_block do
sequence(:reason) { |n| "User Block #{n}" }
ends_at Time.now + 1.day
ends_at { Time.now + 1.day }
user
association :creator, :factory => :moderator_user
trait :needs_view do
needs_view true
needs_view { true }
end
trait :expired do
ends_at Time.now - 1.day
ends_at { Time.now - 1.day }
end
trait :revoked do