Allow prefill civility
This commit is contained in:
parent
32b5daeb9a
commit
c4e427642f
6 changed files with 9 additions and 4 deletions
|
@ -63,7 +63,7 @@ FactoryBot.define do
|
|||
|
||||
factory :champ_civilite, class: 'Champs::CiviliteChamp' do
|
||||
type_de_champ { association :type_de_champ_civilite, procedure: dossier.procedure }
|
||||
value { 'Monsieur' }
|
||||
value { 'M.' }
|
||||
end
|
||||
|
||||
factory :champ_email, class: 'Champs::EmailChamp' do
|
||||
|
|
|
@ -89,6 +89,7 @@ RSpec.describe PrefillParams do
|
|||
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_iban, "value"
|
||||
it_behaves_like "a champ public value that is authorized", :type_de_champ_civilite, "M."
|
||||
|
||||
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"
|
||||
|
|
|
@ -242,13 +242,13 @@ describe TypeDeChamp do
|
|||
it_behaves_like "a prefillable type de champ", :type_de_champ_email
|
||||
it_behaves_like "a prefillable type de champ", :type_de_champ_phone
|
||||
it_behaves_like "a prefillable type de champ", :type_de_champ_iban
|
||||
it_behaves_like "a prefillable type de champ", :type_de_champ_civilite
|
||||
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_number
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_communes
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_dossier_link
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_checkbox
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_titre_identite
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_civilite
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_yes_no
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_date
|
||||
it_behaves_like "a non-prefillable type de champ", :type_de_champ_datetime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue