Make factory-created revoked blocks inactive
This commit is contained in:
parent
8da80ff471
commit
3a05667d45
1 changed files with 2 additions and 0 deletions
|
@ -11,10 +11,12 @@ FactoryBot.define do
|
|||
end
|
||||
|
||||
trait :expired do
|
||||
created_at { Time.now.utc - 2.days }
|
||||
ends_at { Time.now.utc - 1.day }
|
||||
end
|
||||
|
||||
trait :revoked do
|
||||
expired
|
||||
revoker :factory => :moderator_user
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue