demarches-normaliennes/spec/factories/service.rb

14 lines
323 B
Ruby
Raw Normal View History

2018-04-19 18:12:48 +02:00
FactoryBot.define do
factory :service do
2018-09-04 16:46:48 +02:00
nom { 'service' }
organisme { 'organisme' }
2019-02-18 16:18:09 +01:00
type_organisme { Service.type_organismes.fetch(:association) }
2018-09-04 16:46:48 +02:00
email { 'email@toto.com' }
telephone { '1234' }
horaires { 'de 9 h à 18 h' }
adresse { 'adresse' }
association :administrateur
2018-04-19 18:12:48 +02:00
end
end