]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/traces.rb
Merge pull request #1938 from jguthrie100/fix_no_trace_description_error
[rails.git] / test / factories / traces.rb
index 76fd90590e6cbb782ffd9f55df0fe183b31475ea..8663ccf2795eb8866b032b6ef85736ca9a5fed1e 100644 (file)
@@ -1,19 +1,19 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :trace do
     sequence(:name) { |n| "Trace #{n}.gpx" }
     sequence(:description) { |n| "This is trace #{n}" }
 
     user
 
-    timestamp Time.now
-    inserted true
+    timestamp { Time.now }
+    inserted { true }
 
     trait :deleted do
-      visible false
+      visible { false }
     end
 
     transient do
-      fixture nil
+      fixture { nil }
     end
 
     after(:create) do |trace, evaluator|