]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/tracepoints.rb
Add validation for before/after parameters to pagination concern
[rails.git] / test / factories / tracepoints.rb
index ad520ea1f1f74e047efff100b1c2636bc6871006..86d2aea57a630a601969df31dd2703409ad1bdeb 100644 (file)
@@ -1,10 +1,10 @@
 FactoryBot.define do
   factory :tracepoint do
-    trackid 1
-    latitude 1 * GeoRecord::SCALE
-    longitude 1 * GeoRecord::SCALE
-    # tile QuadTile.tile_for_point(1,1)
-    timestamp Time.now
+    trackid { 1 }
+    latitude { 1 * GeoRecord::SCALE }
+    longitude { 1 * GeoRecord::SCALE }
+    # tile { QuadTile.tile_for_point(1,1) }
+    timestamp { Time.now.utc }
 
     trace
   end