specs: simplify the syntax of some factories

This commit is contained in:
Pierre de La Morinerie 2021-11-19 16:25:32 +00:00
parent 2203a7762f
commit 997c197980
4 changed files with 5 additions and 11 deletions

View file

@ -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' }