Add annuaire_education champ

This commit is contained in:
Paul Chavard 2021-01-14 17:29:57 +01:00
parent 5c9f2e8783
commit 54f2084aef
8 changed files with 55 additions and 1 deletions

View file

@ -159,6 +159,10 @@ FactoryBot.define do
type_de_champ { association :type_de_champ_iban, procedure: dossier.procedure }
end
factory :champ_annuaire_education, class: 'Champs::AnnuaireEducationChamp' do
type_de_champ { association :type_de_champ_annuaire_education, procedure: dossier.procedure }
end
factory :champ_siret, class: 'Champs::SiretChamp' do
association :type_de_champ, factory: [:type_de_champ_siret]
association :etablissement, factory: [:etablissement]

View file

@ -142,6 +142,9 @@ FactoryBot.define do
factory :type_de_champ_iban do
type_champ { TypeDeChamp.type_champs.fetch(:iban) }
end
factory :type_de_champ_annuaire_education do
type_champ { TypeDeChamp.type_champs.fetch(:annuaire_education) }
end
factory :type_de_champ_carte do
type_champ { TypeDeChamp.type_champs.fetch(:carte) }
end