used new constant for genders
This commit is contained in:
parent
1e6847bc6f
commit
6c56fc73d7
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue