]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/old_way.rb
Set Open Graph image to first image for diary entries
[rails.git] / test / factories / old_way.rb
index a57ccb7136be6643028e3ad0e0e9e1153c120a40..b91bf8bf53973289c48dc54845891e8defd82073 100644 (file)
@@ -1,10 +1,10 @@
 FactoryBot.define do
   factory :old_way do
-    timestamp Time.now
-    visible true
-    version 1
+    timestamp { Time.now.utc }
+    visible { true }
+    version { 1 }
 
     changeset
-    association :current_way, :factory => :way
+    current_way :factory => :way
   end
 end