[Fix #727] Engagement champ should behave like checkbox when displayed
This commit is contained in:
parent
1965fba900
commit
66549f93bb
2 changed files with 14 additions and 1 deletions
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue