mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Merge branch 'rs-single-item-task-list-spec' into 'master'
Add spec for single-item task lists Follow-up to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2330 See merge request !2340
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user