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
|
|
@ -4,19 +4,20 @@
|
|||
|
||||
FactoryBot.define do
|
||||
factory :splashpage do
|
||||
public false
|
||||
public { false }
|
||||
|
||||
factory :full_splashpage do
|
||||
public true
|
||||
include_tracks true
|
||||
include_program true
|
||||
include_social_media true
|
||||
include_venue true
|
||||
include_tickets true
|
||||
include_registrations true
|
||||
include_sponsors true
|
||||
include_lodgings true
|
||||
include_cfp true
|
||||
public { true }
|
||||
|
||||
include_tracks { true }
|
||||
include_program { true }
|
||||
include_social_media { true }
|
||||
include_venue { true }
|
||||
include_tickets { true }
|
||||
include_registrations { true }
|
||||
include_sponsors { true }
|
||||
include_lodgings { true }
|
||||
include_cfp { true }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue