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
|
|
@ -3,10 +3,10 @@
|
|||
FactoryBot.define do
|
||||
factory :ticket do
|
||||
title { "#{Faker::Hipster.word} Ticket" }
|
||||
price_cents 1000
|
||||
price_currency 'USD'
|
||||
price_cents { 1000 }
|
||||
price_currency { 'USD' }
|
||||
factory :registration_ticket do
|
||||
registration_ticket true
|
||||
registration_ticket { true }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue