[ruby/rdoc] Add test_generate_page

https://github.com/ruby/rdoc/commit/c870284163
This commit is contained in:
Nobuyoshi Nakada 2022-03-22 01:00:54 +09:00 committed by git
parent 73541cdc2f
commit 034c09776d

View File

@ -99,6 +99,14 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase
assert_match(%r[Klass/Inner\.html".*>Inner<], summary)
end
def test_generate_page
@store.add_file 'outer.rdoc', parser: RDoc::Parser::Simple
@store.add_file 'outer/inner.rdoc', parser: RDoc::Parser::Simple
@g.generate
assert_file 'outer_rdoc.html'
assert_file 'outer/inner_rdoc.html'
end
def test_generate_dry_run
@g.dry_run = true
top_level = @store.add_file 'file.rb'