summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-03-22 01:13:06 +0900
committergit <svn-admin@ruby-lang.org>2022-03-22 01:32:13 +0900
commit92ef73a91833aa006d7a99886712f7583af779ec (patch)
tree0001e2999f41c1c6d918354890177ec290f0adfd /test/rdoc
parentdafe5c1323f20c04d8378ff003af2c04adb379c9 (diff)
[ruby/rdoc] Expand the enclosing tree of the current file
https://github.com/ruby/rdoc/commit/f9f90ef2ff
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_generator_darkfish.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb
index 90b934dc63..ae3a4c5ebf 100644
--- a/test/rdoc/test_rdoc_generator_darkfish.rb
+++ b/test/rdoc/test_rdoc_generator_darkfish.rb
@@ -110,6 +110,10 @@ class TestRDocGeneratorDarkfish < RDoc::TestCase
assert_match(re, index)
summary = index[re]
assert_match %r[<a href="\./outer/inner_rdoc.html">inner</a>], summary
+ re = %r[<details open><summary><a href="\./outer_rdoc\.html">outer</a></summary>.*?</details>]m
+ assert_match(re, File.read('outer_rdoc.html'))
+ re = %r[<details open><summary><a href="\.\./outer_rdoc\.html">outer</a></summary>.*?</details>]m
+ assert_match(re, File.read('outer/inner_rdoc.html'))
end
def test_generate_dry_run