@@ -214,14 +214,14 h1. Another title | |||||
214 |
|
214 | |||
215 | RAW |
|
215 | RAW | |
216 |
|
216 | |||
217 |
expected = '< |
|
217 | expected = '<ul class="toc">' + | |
218 |
'< |
|
218 | '<li class="heading1"><a href="#1">Title</a></li>' + | |
219 |
'< |
|
219 | '<li class="heading2"><a href="#2">Subtitle</a></li>' + | |
220 |
'< |
|
220 | '<li class="heading2"><a href="#3">Subtitle with red text</a></li>' + | |
221 |
'< |
|
221 | '<li class="heading1"><a href="#4">Another title</a></li>' + | |
222 |
'</ |
|
222 | '</ul>' | |
223 |
|
223 | |||
224 | assert textilizable(raw).include?(expected) |
|
224 | assert textilizable(raw).gsub("\n", "").include?(expected) | |
225 | end |
|
225 | end | |
226 |
|
226 | |||
227 | def test_blockquote |
|
227 | def test_blockquote |
General Comments 0
You need to be logged in to leave comments.
Login now