mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc*: Improved display of ChangeLog files as HTML.
* test/rdoc*: Test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fe6b2e20e9
commit
54c40f3db5
9 changed files with 136 additions and 14 deletions
|
|
@ -191,5 +191,24 @@ class TestRDocMarkupDocument < RDoc::TestCase
|
|||
assert_equal expected, doc.table_of_contents
|
||||
end
|
||||
|
||||
def test_table_of_contents_omit_headings_below
|
||||
document = doc(
|
||||
head(1, 'A'),
|
||||
para('B'),
|
||||
head(2, 'C'),
|
||||
para('D'),
|
||||
head(1, 'E'),
|
||||
para('F'))
|
||||
|
||||
document.omit_headings_below = 1
|
||||
|
||||
expected = [
|
||||
head(1, 'A'),
|
||||
head(1, 'E'),
|
||||
]
|
||||
|
||||
assert_equal expected, document.table_of_contents
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue