bug(multiple_drop_down_list): when their is a coma in label, comas is splitted as an item
This commit is contained in:
parent
5370f45a7c
commit
35c556fc89
1 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
||||||
|
describe 'views/shared/champs/multiple_drop_down_list/_show.html.haml', type: :view do
|
||||||
|
let(:champ) { build(:champ_multiple_drop_down_list, value: ['abc', '2, 3, 4']) }
|
||||||
|
|
||||||
|
subject { render partial: 'shared/champs/multiple_drop_down_list/show', locals: { champ: champ } }
|
||||||
|
|
||||||
|
it 'renders the view' do
|
||||||
|
subject
|
||||||
|
expect(rendered).to have_selector('li', count: champ.selected_options.size)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue