Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit e2c0617

Browse files
committed
Add failing test for nested items
1 parent 242b524 commit e2c0617

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/task_list/filter_test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ def test_handles_encoding_correctly
7878
assert_equal unicode, item.text.strip
7979
end
8080

81+
def test_handles_nested_items
82+
text = <<-md
83+
- [ ] one
84+
- [ ] one.one
85+
md
86+
puts filter(text)[:output].to_s
87+
assert item = filter(text)[:output].css('.task-list-item .task-list-item').pop
88+
end
89+
8190
protected
8291

8392
def filter(input, context = @context, result = nil)

0 commit comments

Comments
 (0)