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,22 +2,22 @@
|
|||
|
||||
FactoryBot.define do
|
||||
factory :role do
|
||||
name 'my role'
|
||||
name { 'my role' }
|
||||
|
||||
factory :organizer_role do
|
||||
name 'organizer'
|
||||
name { 'organizer' }
|
||||
end
|
||||
|
||||
factory :cfp_role do
|
||||
name 'cfp'
|
||||
name { 'cfp' }
|
||||
end
|
||||
|
||||
factory :info_desk_role do
|
||||
name 'info_desk'
|
||||
name { 'info_desk' }
|
||||
end
|
||||
|
||||
factory :volunteers_coordinator_role do
|
||||
name 'volunteers_coordinator'
|
||||
name { 'volunteers_coordinator' }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue