summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-22 01:00:54 +0900
committergit <svn-admin@ruby-lang.org>2022-03-22 01:32:11 +0900
commit034c09776de4574482f78cd6b30001afef742964 (patch)
tree0483a2b25ef41affd3b8738d6cd4f5985bd8c8c4 /test/rdoc
parent73541cdc2f192f856ab19781472cdccbf9c21f71 (diff)
[ruby/rdoc] Add test_generate_page
https://github.com/ruby/rdoc/commit/c870284163
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_generator_darkfish.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb
index 8f8f7ef814..5ab4cffd1a 100644
--- a/test/rdoc/test_rdoc_generator_darkfish.rb
+++ b/test/rdoc/test_rdoc_generator_darkfish.rb
@@ -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'