]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/notes.rb
Copy trace fixture files, rather than symlinking
[rails.git] / test / factories / notes.rb
index 9dbcdf58cc94b02ba7a8b80c0f830add09169b87..77b4245aa5b037fdf5eb491d565e63f2017d93d0 100644 (file)
@@ -1,12 +1,12 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :note do
-    latitude 1 * GeoRecord::SCALE
-    longitude 1 * GeoRecord::SCALE
-    # tile QuadTile.tile_for_point(1,1)
+    latitude { 1 * GeoRecord::SCALE }
+    longitude { 1 * GeoRecord::SCALE }
+    # tile { QuadTile.tile_for_point(1,1) }
 
     factory :note_with_comments do
       transient do
-        comments_count 1
+        comments_count { 1 }
       end
 
       after(:create) do |note, evaluator|