Add spec for single-item task lists

This commit is contained in:
Robert Speicher 2016-01-07 15:23:29 -05:00
parent b1539116f6
commit 65308a9c15

View file

@ -7,4 +7,10 @@ describe Banzai::Filter::TaskListFilter, lib: true do
exp = act = %(<ul><li>Item</li></ul>)
expect(filter(act).to_html).to eq exp
end
it 'applies `task-list` to single-item task lists' do
act = filter('<ul><li>[ ] Task 1</li></ul>')
expect(act.to_html).to start_with '<ul class="task-list">'
end
end