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,13 +4,13 @@
|
|||
FactoryBot.define do
|
||||
factory :room do
|
||||
name { "Room #{Faker::Address.country}" }
|
||||
size 4
|
||||
size { 4 }
|
||||
|
||||
venue
|
||||
|
||||
factory :room_for_100 do
|
||||
name 'Room for 100'
|
||||
size 100
|
||||
name { 'Room for 100' }
|
||||
size { 100 }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue