From: Anton Khorev Date: Thu, 21 Mar 2024 03:09:14 +0000 (+0300) Subject: Make factory-created revoked blocks inactive X-Git-Tag: live~770^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3a05667d45f63a4d61470f12e63180a0da64c15e Make factory-created revoked blocks inactive --- diff --git a/test/factories/user_blocks.rb b/test/factories/user_blocks.rb index 2f68dc8dc..6d5c02a03 100644 --- a/test/factories/user_blocks.rb +++ b/test/factories/user_blocks.rb @@ -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