X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cff4c63713e794672532b10d614e4be01a1f4e48..86fae8980d97ba7fdd9345eb5e372fd4f8f20b7f:/test/factories/user_blocks.rb?ds=sidebyside 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 }