bug(multiple_drop_down_list): when their is a coma in label, comas is splitted as an item

This commit is contained in:
Martin 2022-09-30 11:15:46 +02:00 committed by mfo
parent 5370f45a7c
commit 35c556fc89

View file

@ -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