demarches-normaliennes/spec/factories/service.rb
2018-09-04 16:46:48 +02:00

12 lines
333 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FactoryBot.define do
factory :service do
nom { 'service' }
organisme { 'organisme' }
type_organisme { Service.type_organismes.fetch(:commune) }
administrateur { create(:administrateur) }
email { 'email@toto.com' }
telephone { '1234' }
horaires { 'de 9 h à 18 h' }
adresse { 'adresse' }
end
end