let annuaire education champ be prefillable
This commit is contained in:
parent
7e13d58db2
commit
71f1e785ab
3 changed files with 5 additions and 2 deletions
|
@ -274,6 +274,7 @@ class TypeDeChamp < ApplicationRecord
|
||||||
TypeDeChamp.type_champs.fetch(:repetition),
|
TypeDeChamp.type_champs.fetch(:repetition),
|
||||||
TypeDeChamp.type_champs.fetch(:multiple_drop_down_list),
|
TypeDeChamp.type_champs.fetch(:multiple_drop_down_list),
|
||||||
TypeDeChamp.type_champs.fetch(:epci),
|
TypeDeChamp.type_champs.fetch(:epci),
|
||||||
|
TypeDeChamp.type_champs.fetch(:annuaire_education),
|
||||||
TypeDeChamp.type_champs.fetch(:dossier_link),
|
TypeDeChamp.type_champs.fetch(:dossier_link),
|
||||||
TypeDeChamp.type_champs.fetch(:siret),
|
TypeDeChamp.type_champs.fetch(:siret),
|
||||||
TypeDeChamp.type_champs.fetch(:rna)
|
TypeDeChamp.type_champs.fetch(:rna)
|
||||||
|
|
|
@ -140,6 +140,7 @@ RSpec.describe PrefillParams do
|
||||||
it_behaves_like "a champ public value that is authorized", :drop_down_list, "value"
|
it_behaves_like "a champ public value that is authorized", :drop_down_list, "value"
|
||||||
it_behaves_like "a champ public value that is authorized", :departements, "03"
|
it_behaves_like "a champ public value that is authorized", :departements, "03"
|
||||||
it_behaves_like "a champ public value that is authorized", :communes, ['01', '01457']
|
it_behaves_like "a champ public value that is authorized", :communes, ['01', '01457']
|
||||||
|
it_behaves_like "a champ public value that is authorized", :annuaire_education, "0050009H"
|
||||||
it_behaves_like "a champ public value that is authorized", :multiple_drop_down_list, ["val1", "val2"]
|
it_behaves_like "a champ public value that is authorized", :multiple_drop_down_list, ["val1", "val2"]
|
||||||
it_behaves_like "a champ public value that is authorized", :dossier_link, "1"
|
it_behaves_like "a champ public value that is authorized", :dossier_link, "1"
|
||||||
it_behaves_like "a champ public value that is authorized", :epci, ['01', '200042935']
|
it_behaves_like "a champ public value that is authorized", :epci, ['01', '200042935']
|
||||||
|
@ -182,6 +183,7 @@ RSpec.describe PrefillParams do
|
||||||
it_behaves_like "a champ private value that is authorized", :siret, "13002526500013"
|
it_behaves_like "a champ private value that is authorized", :siret, "13002526500013"
|
||||||
it_behaves_like "a champ private value that is authorized", :departements, "03"
|
it_behaves_like "a champ private value that is authorized", :departements, "03"
|
||||||
it_behaves_like "a champ private value that is authorized", :communes, ['01', '01457']
|
it_behaves_like "a champ private value that is authorized", :communes, ['01', '01457']
|
||||||
|
it_behaves_like "a champ private value that is authorized", :annuaire_education, "0050009H"
|
||||||
it_behaves_like "a champ private value that is authorized", :multiple_drop_down_list, ["val1", "val2"]
|
it_behaves_like "a champ private value that is authorized", :multiple_drop_down_list, ["val1", "val2"]
|
||||||
it_behaves_like "a champ private value that is authorized", :dossier_link, "1"
|
it_behaves_like "a champ private value that is authorized", :dossier_link, "1"
|
||||||
it_behaves_like "a champ private value that is authorized", :epci, ['01', '200042935']
|
it_behaves_like "a champ private value that is authorized", :epci, ['01', '200042935']
|
||||||
|
@ -223,7 +225,7 @@ RSpec.describe PrefillParams do
|
||||||
it_behaves_like "a champ public value that is unauthorized", :regions, "value"
|
it_behaves_like "a champ public value that is unauthorized", :regions, "value"
|
||||||
it_behaves_like "a champ public value that is unauthorized", :departements, "value"
|
it_behaves_like "a champ public value that is unauthorized", :departements, "value"
|
||||||
it_behaves_like "a champ public value that is unauthorized", :communes, "value"
|
it_behaves_like "a champ public value that is unauthorized", :communes, "value"
|
||||||
it_behaves_like "a champ public value that is unauthorized", :annuaire_education, "value"
|
# TODO: SEB validation it_behaves_like "a champ public value that is unauthorized", :annuaire_education, "value"
|
||||||
it_behaves_like "a champ public value that is unauthorized", :multiple_drop_down_list, ["value"]
|
it_behaves_like "a champ public value that is unauthorized", :multiple_drop_down_list, ["value"]
|
||||||
|
|
||||||
context "when the public type de champ is unauthorized because of wrong value format (repetition)" do
|
context "when the public type de champ is unauthorized because of wrong value format (repetition)" do
|
||||||
|
|
|
@ -253,6 +253,7 @@ describe TypeDeChamp do
|
||||||
it_behaves_like "a prefillable type de champ", :type_de_champ_checkbox
|
it_behaves_like "a prefillable type de champ", :type_de_champ_checkbox
|
||||||
it_behaves_like "a prefillable type de champ", :type_de_champ_drop_down_list
|
it_behaves_like "a prefillable type de champ", :type_de_champ_drop_down_list
|
||||||
it_behaves_like "a prefillable type de champ", :type_de_champ_repetition
|
it_behaves_like "a prefillable type de champ", :type_de_champ_repetition
|
||||||
|
it_behaves_like "a prefillable type de champ", :type_de_champ_annuaire_education
|
||||||
it_behaves_like "a prefillable type de champ", :type_de_champ_multiple_drop_down_list
|
it_behaves_like "a prefillable type de champ", :type_de_champ_multiple_drop_down_list
|
||||||
it_behaves_like "a prefillable type de champ", :type_de_champ_epci
|
it_behaves_like "a prefillable type de champ", :type_de_champ_epci
|
||||||
it_behaves_like "a prefillable type de champ", :type_de_champ_dossier_link
|
it_behaves_like "a prefillable type de champ", :type_de_champ_dossier_link
|
||||||
|
@ -271,7 +272,6 @@ describe TypeDeChamp do
|
||||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_mesri
|
it_behaves_like "a non-prefillable type de champ", :type_de_champ_mesri
|
||||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_carte
|
it_behaves_like "a non-prefillable type de champ", :type_de_champ_carte
|
||||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_address
|
it_behaves_like "a non-prefillable type de champ", :type_de_champ_address
|
||||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_annuaire_education
|
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#normalize_libelle' do
|
describe '#normalize_libelle' do
|
||||||
|
|
Loading…
Reference in a new issue