diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-13 21:16:43 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-03-22 01:32:12 +0900 |
commit | dafe5c1323f20c04d8378ff003af2c04adb379c9 (patch) | |
tree | 49f77fd1dffd8f50d565c2fdb32a092d93669e57 /test | |
parent | 034c09776de4574482f78cd6b30001afef742964 (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.rb | 5 |
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 |