summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-21 14:34:46 +0900
committeraycabta <aycabta@gmail.com>2021-04-03 01:22:00 +0900
commita6948329f8f89fb390215086fe4a888915fd589e (patch)
tree5c9b4fa7097111950c1452e83e81d52b3a27db0e
parent61e1cf23ac0d122fba3ad4cbaa402c7c94ad54d3 (diff)
[ruby/rdoc] Clarify that dots in URL are replaced
The dots in all path components from the document root are replaced with underscores, not only in the basename. https://github.com/ruby/rdoc/commit/7a3417ea4c
-rw-r--r--test/rdoc/test_rdoc_top_level.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_top_level.rb b/test/rdoc/test_rdoc_top_level.rb
index e396791ab8..a954fde981 100644
--- a/test/rdoc/test_rdoc_top_level.rb
+++ b/test/rdoc/test_rdoc_top_level.rb
@@ -157,6 +157,9 @@ class TestRDocTopLevel < XrefTestCase
def test_http_url
assert_equal 'prefix/path/top_level_rb.html', @top_level.http_url('prefix')
+
+ other_level = @store.add_file 'path.other/level.rb'
+ assert_equal 'prefix/path_other/level_rb.html', other_level.http_url('prefix')
end
def test_last_modified