X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/754a0a9cb5c49114181fd1d1181eea0d757dbac4..b87983c2baf55d437c09e668188454d01b5f20b0:/test/factories/user_blocks.rb?ds=inline 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 }