]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/user_blocks.rb
Merge remote-tracking branch 'upstream/pull/5111'
[rails.git] / test / factories / user_blocks.rb
index 82c2fbe6e8f694b87578e1dbbe2bdb9f8726c667..8bdd6875e014ed8e364871b41781cfccd31cfa84 100644 (file)
@@ -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 }