diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-07 15:23:29 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-07 15:25:39 -0500 |
commit | 65308a9c15cd371986999d38eb6f359d8f601687 (patch) | |
tree | b294bf2dfede5acf29c30e4ed5a40867db1c9a3b | |
parent | b1539116f65c302729ca4130a30169295dcfc07e (diff) | |
download | gitlab-ce-65308a9c15cd371986999d38eb6f359d8f601687.tar.gz |
Add spec for single-item task listsrs-single-item-task-list-spec
-rw-r--r-- | spec/lib/banzai/filter/task_list_filter_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/banzai/filter/task_list_filter_spec.rb b/spec/lib/banzai/filter/task_list_filter_spec.rb index f2e3a44478d..569cbc885c7 100644 --- a/spec/lib/banzai/filter/task_list_filter_spec.rb +++ b/spec/lib/banzai/filter/task_list_filter_spec.rb @@ -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 |