X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8dc5de1a0f4092dfc7343d3475f00b8a023bea7c..95d99d0faf14e82aed6447fb9e92cc0e54e5e3ad:/test/factories/user_blocks.rb diff --git a/test/factories/user_blocks.rb b/test/factories/user_blocks.rb index 82c2fbe6e..8bdd6875e 100644 --- a/test/factories/user_blocks.rb +++ b/test/factories/user_blocks.rb @@ -7,6 +7,12 @@ FactoryBot.define do user creator :factory => :moderator_user + trait :zero_hour do + now = Time.now.utc + created_at { now } + ends_at { now } + end + trait :needs_view do needs_view { true } deactivates_at { nil }