Use enum to the fullest with Service.type_organismes
This commit is contained in:
parent
2d3b553e4d
commit
ee25bba38c
3 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@ FactoryBot.define do
|
|||
factory :service do
|
||||
nom 'service'
|
||||
organisme 'organisme'
|
||||
type_organisme 'commune'
|
||||
type_organisme Service.type_organismes.fetch(:commune)
|
||||
administrateur { create(:administrateur) }
|
||||
email 'email@toto.com'
|
||||
telephone '1234'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue