Enable FactoryBot/AttributeDefinedStatically
See https://robots.thoughtbot.com/deprecating-static-attributes-in-factory_bot-4-11
This commit is contained in:
parent
5fc867a8fc
commit
f866974b19
28 changed files with 146 additions and 140 deletions
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
FactoryBot.define do
|
||||
factory :survey do
|
||||
title 'This is my survey'
|
||||
start_date Date.current - 1.day
|
||||
end_date Date.current + 1.day
|
||||
title { 'This is my survey' }
|
||||
start_date { Date.current - 1.day }
|
||||
end_date { Date.current + 1.day }
|
||||
|
||||
factory :conference_survey do
|
||||
association :surveyable, factory: :conference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue