review: unauthorize complex champs
This commit is contained in:
parent
cdd790e3d3
commit
69d61913f5
2 changed files with 8 additions and 15 deletions
|
@ -39,14 +39,7 @@ class PrefillParams
|
|||
TypeDeChamp.type_champs.fetch(:integer_number),
|
||||
TypeDeChamp.type_champs.fetch(:email),
|
||||
TypeDeChamp.type_champs.fetch(:phone),
|
||||
TypeDeChamp.type_champs.fetch(:address),
|
||||
TypeDeChamp.type_champs.fetch(:pays),
|
||||
TypeDeChamp.type_champs.fetch(:regions),
|
||||
TypeDeChamp.type_champs.fetch(:departements),
|
||||
TypeDeChamp.type_champs.fetch(:siret),
|
||||
TypeDeChamp.type_champs.fetch(:rna),
|
||||
TypeDeChamp.type_champs.fetch(:iban),
|
||||
TypeDeChamp.type_champs.fetch(:annuaire_education)
|
||||
TypeDeChamp.type_champs.fetch(:iban)
|
||||
]
|
||||
|
||||
NEED_VALIDATION_TYPES_DE_CHAMPS = [
|
||||
|
|
|
@ -88,14 +88,7 @@ RSpec.describe PrefillParams do
|
|||
it_behaves_like "a champ public value that is authorized", :type_de_champ_integer_number, "42"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_email, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_phone, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_address, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_pays, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_regions, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_departements, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_siret, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_rna, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_iban, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_annuaire_education, "value"
|
||||
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_decimal_number, "non decimal string"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_integer_number, "non integer string"
|
||||
|
@ -120,6 +113,13 @@ RSpec.describe PrefillParams do
|
|||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_pole_emploi, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_mesri, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_carte, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_address, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_pays, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_regions, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_departements, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_siret, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_rna, "value"
|
||||
it_behaves_like "a champ public value that is unauthorized", :type_de_champ_annuaire_education, "value"
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue