X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/754a0a9cb5c49114181fd1d1181eea0d757dbac4..952188c814382b4ee0a90f6fc6084542dd113e75:/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 }