Fix FactoryBot deprecation warnings
This commit is contained in:
parent
6c597f614b
commit
06915a77b5
22 changed files with 70 additions and 70 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue