]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/changesets.rb
Merge remote-tracking branch 'upstream/pull/5348'
[rails.git] / test / factories / changesets.rb
index 01d3571981e5db09cd77b1ce71ff3af9cf42030b..d4ebdcee133d8811822db1f8974e8f13066f3b27 100644 (file)
@@ -1,13 +1,13 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :changeset do
-    created_at Time.now.utc
-    closed_at Time.now.utc + 1.day
+    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
+      created_at { Time.now.utc - 5.hours }
+      closed_at { Time.now.utc - 4.hours }
     end
   end
 end