used new constant for genders

This commit is contained in:
clemkeirua 2019-08-01 09:55:41 +02:00
parent 1e6847bc6f
commit 6c56fc73d7
3 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
.radios
%label
= form.radio_button :value, 'M.'
= form.radio_button :value, Individual::GENDER_MALE
Monsieur
%label
= form.radio_button :value, 'Mme.'
= form.radio_button :value, Individual::GENDER_FEMALE
Madame

View file

@ -13,7 +13,7 @@
champs requis
= f.label :gender, class: "required"
= f.select :gender, ['M.', 'Mme'], {}, class: "small"
= f.select :gender, [Individual::GENDER_MALE, Individual::GENDER_FEMALE], {}, class: "small"
.flex
.inline-champ

View file

@ -50,7 +50,7 @@ feature 'The user' do
expect(champ_value_for('datetime')).to eq('06/01/1985 07:05')
expect(champ_value_for('number')).to eq('42')
expect(champ_value_for('checkbox')).to eq('on')
expect(champ_value_for('civilite')).to eq('Mme.')
expect(champ_value_for('civilite')).to eq('Mme')
expect(champ_value_for('email')).to eq('loulou@yopmail.com')
expect(champ_value_for('phone')).to eq('1234567890')
expect(champ_value_for('yes_no')).to eq('false')