X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8dc5de1a0f4092dfc7343d3475f00b8a023bea7c..8e566b0bff66e23389a6fb1c7458696c8e06faf1:/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 }