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
|
|
@ -6,14 +6,14 @@ FactoryBot.define do
|
|||
description { Faker::Lorem.sentence }
|
||||
color { Faker::Color.hex_color }
|
||||
short_name { SecureRandom.urlsafe_base64(5) }
|
||||
state 'confirmed'
|
||||
cfp_active true
|
||||
state { 'confirmed' }
|
||||
cfp_active { true }
|
||||
program
|
||||
|
||||
trait :self_organized do
|
||||
association :submitter, factory: :user
|
||||
state 'new'
|
||||
cfp_active false
|
||||
state { 'new' }
|
||||
cfp_active { false }
|
||||
start_date { Time.zone.today }
|
||||
end_date { Time.zone.today }
|
||||
room
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue