Make factory-created revoked blocks inactive

This commit is contained in:
Anton Khorev 2024-03-21 06:09:14 +03:00
parent 8da80ff471
commit 3a05667d45

View file

@ -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