demarches-normaliennes/spec/factories/service.rb

20 lines
550 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
2018-04-19 18:12:48 +02:00
FactoryBot.define do
factory :service do
sequence(:nom) { |n| "Service #{n}" }
2018-09-04 16:46:48 +02:00
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' }
2024-09-02 17:13:43 +02:00
siret { '35600011719156' }
etablissement_infos { { adresse: "75 rue du Louvre\n75002\nPARIS\nFRANCE" } }
etablissement_lat { 48.87 }
etablissement_lng { 2.34 }
association :administrateur
2018-04-19 18:12:48 +02:00
end
end