diff options
author | aycabta <aycabta@gmail.com> | 2020-08-04 15:46:39 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-09-18 14:57:57 +0900 |
commit | b5db9b8a314249adee021ba6a426c6a2ebbc6804 (patch) | |
tree | c4d5b28cc29cb2f4dcee33c662783c3d1fa988d1 /test/rdoc | |
parent | 3b159374a2daa101b419ebf6f4a7fe01bbe9dc55 (diff) |
[ruby/rdoc] Support full filename to make a link for a text file
https://github.com/ruby/rdoc/commit/41db49c485
Diffstat (limited to 'test/rdoc')
-rw-r--r-- | test/rdoc/test_rdoc_store.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_store.rb b/test/rdoc/test_rdoc_store.rb index 076b8e7d4e..82340e6b7a 100644 --- a/test/rdoc/test_rdoc_store.rb +++ b/test/rdoc/test_rdoc_store.rb @@ -611,6 +611,14 @@ class TestRDocStore < XrefTestCase assert_equal page, @store.page('PAGE') end + def test_page_with_extension + page = @store.add_file 'PAGE.txt', parser: RDoc::Parser::Simple + + assert_nil @store.page 'no such page' + + assert_equal page, @store.page('PAGE.txt') + end + def test_save FileUtils.mkdir_p @tmpdir |