Skip to content

Commit 3c95f51

Browse files
committed
Add test for star checkboxes
1 parent c2bc8ed commit 3c95f51

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

spec/checkboxes_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
EXPECTED
1515
end
1616

17+
it 'inserts a * checkbox after the previous one' do
18+
test_bullet_inserted('do that', <<-INIT, <<-EXPECTED)
19+
# Hello there
20+
* [ ] do this
21+
INIT
22+
# Hello there
23+
* [ ] do this
24+
* [ ] do that
25+
EXPECTED
26+
end
27+
1728
it 'inserts an empty checkbox even if prev line was checked' do
1829
test_bullet_inserted('do that', <<-INIT, <<-EXPECTED)
1930
# Hello there

0 commit comments

Comments
 (0)