summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-13 21:16:43 +0900
committergit <svn-admin@ruby-lang.org>2022-03-22 01:32:12 +0900
commitdafe5c1323f20c04d8378ff003af2c04adb379c9 (patch)
tree49f77fd1dffd8f50d565c2fdb32a092d93669e57 /test
parent034c09776de4574482f78cd6b30001afef742964 (diff)
[ruby/rdoc] Fold files in the page directory
https://github.com/ruby/rdoc/commit/b7b4cdab6c
Diffstat (limited to 'test')
-rw-r--r--test/rdoc/test_rdoc_generator_darkfish.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb
index 5ab4cffd1a..90b934dc63 100644
--- a/test/rdoc/test_rdoc_generator_darkfish.rb
+++ b/test/rdoc/test_rdoc_generator_darkfish.rb
@@ -105,6 +105,11 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase
@g.generate
assert_file 'outer_rdoc.html'
assert_file 'outer/inner_rdoc.html'
+ index = File.read('index.html')
+ re = %r[<summary><a href="\./outer_rdoc\.html">outer</a></summary>.*?</details>]m
+ assert_match(re, index)
+ summary = index[re]
+ assert_match %r[<a href="\./outer/inner_rdoc.html">inner</a>], summary
end
def test_generate_dry_run