Refactor factories to use FactoryBot
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Nov 2017 12:33:23 +0000 (12:33 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Nov 2017 12:33:23 +0000 (12:33 +0000)
test/factories/issues.rb
test/factories/reports.rb

index b6dec44786648b3713318f0e5f0594637614b0be..913c47f2af941ff6955d92769ac48f619ffa0c46 100644 (file)
@@ -1,4 +1,4 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :issue do
     # Default to reporting users
     association :reportable, :factory => :user
index 7c0076677d90c20699ffc3d957299cbf2f1f66a9..3945bfd3c89a85069355c27f4bd5e2956d2d3287 100644 (file)
@@ -1,4 +1,4 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :report do
     sequence(:details) { |n| "Report details #{n}" }
     issue