specs: simplify the syntax of some factories
This commit is contained in:
parent
2203a7762f
commit
997c197980
4 changed files with 5 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :service do
|
||||
nom { 'service' }
|
||||
sequence(:nom) { |n| "Service #{n}" }
|
||||
organisme { 'organisme' }
|
||||
type_organisme { Service.type_organismes.fetch(:association) }
|
||||
email { 'email@toto.com' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue