Refactor factories to use FactoryBot
This commit is contained in:
parent
3115fd41b1
commit
f5228657fe
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :issue do
|
||||
# Default to reporting users
|
||||
association :reportable, :factory => :user
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FactoryGirl.define do
|
||||
FactoryBot.define do
|
||||
factory :report do
|
||||
sequence(:details) { |n| "Report details #{n}" }
|
||||
issue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue