asciidoctor 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of asciidoctor might be problematic. Click here for more details.

@@ -1,55 +0,0 @@
1
- require 'test_helper'
2
-
3
- context "Bulleted lists (:ulist)" do
4
- context "Simple lists" do
5
- test "dash elements with no blank lines" do
6
- output = render_string("Blah\n====\n- Foo\n- Boo\n- Blech")
7
- assert_xpath '//ul', output, 1
8
- assert_xpath '//ul/li', output, 3
9
- end
10
-
11
- test "dash elements with blank lines" do
12
- assert_xpath '//ul/li', render_string("Blah\n====\n- Foo\n\n- Boo\n\n- Blech"), 3
13
- end
14
-
15
- test "asterisk elements with no blank lines" do
16
- assert_xpath '//ul/li', render_string("Blah\n====\n* Foo\n* Boo\n* Blech"), 3
17
- end
18
-
19
- test "asterisk elements with blank lines" do
20
- assert_xpath '//ul/li', render_string("Blah\n====\n* Foo\n\n* Boo\n\n* Blech"), 3
21
- end
22
- end
23
-
24
- context "Nested lists" do
25
- test "nested mixed elements (asterisk and dash)" do
26
- output = render_string("Blah\n====\n- Foo\n* Boo\n- Blech")
27
- assert_xpath '//ul', output, 1
28
- assert_xpath '//ul/li', output, 3
29
- end
30
-
31
- test "nested elements (2) with asterisks" do
32
- output = render_string("* Foo\n** Boo\n* Blech")
33
- assert_xpath '//ul', output, 2
34
- assert_xpath '//ul/li', output, 3
35
- end
36
-
37
- test "nested elements (3) with asterisks" do
38
- output = render_string("Blah\n====\n* Foo\n** Boo\n*** Snoo\n* Blech")
39
- assert_xpath '//ul', output, 3
40
- assert_xpath '//ul/li', output, 4
41
- end
42
-
43
- test "nested elements (4) with asterisks" do
44
- output = render_string("Blah\n====\n* Foo\n** Boo\n*** Snoo\n**** Froo\n* Blech")
45
- assert_xpath '//ul', output, 4
46
- assert_xpath '//ul/li', output, 5
47
- end
48
-
49
- test "nested elements (5) with asterisks" do
50
- output = render_string("Blah\n====\n* Foo\n** Boo\n*** Snoo\n**** Froo\n***** Groo\n* Blech")
51
- assert_xpath '//ul', output, 5
52
- assert_xpath '//ul/li', output, 6
53
- end
54
- end
55
- end