[Fix #727] Engagement champ should behave like checkbox when displayed

This commit is contained in:
Mathieu Magnin 2017-09-14 10:57:40 +02:00
parent 1965fba900
commit 66549f93bb
2 changed files with 14 additions and 1 deletions

View file

@ -20,6 +20,19 @@ describe ChampDecorator do
end
end
describe 'for a engagement' do
let(:type_champ) { :engagement }
context 'when value is on' do
before { champ.update value: 'on' }
it { is_expected.to eq 'Oui' }
end
context 'when value is other' do
it { is_expected.to eq 'Non' }
end
end
describe 'for a multiple_drop_down_list' do
let(:type_champ) { :multiple_drop_down_list }