]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/changesets.rb
Convert note view to use server side conditions
[rails.git] / test / factories / changesets.rb
index f76b73126d0374eed28f9eb0a9d03138571bf4f0..f42242e786a1c343e611e2411148ccd530fc0097 100644 (file)
@@ -1,8 +1,13 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :changeset do
     created_at Time.now.utc
     closed_at Time.now.utc + 1.day
 
     user
   factory :changeset do
     created_at Time.now.utc
     closed_at Time.now.utc + 1.day
 
     user
+
+    trait :closed do
+      created_at Time.now.utc - 5.hours
+      closed_at Time.now.utc - 4.hours
+    end
   end
 end
   end
 end