summaryrefslogtreecommitdiff
path: root/test/rdoc
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-10-28 01:44:09 +0900
committeraycabta <aycabta@gmail.com>2019-10-29 12:34:44 +0900
commitc8ce37d4271a58132fb7fc5548e0ba7d85419152 (patch)
tree81c15f13ece54815806adf50a4cad142451c173e /test/rdoc
parentb4da6fc1c277190bbd10e795ebf3be45772038e8 (diff)
[ruby/rdoc] Support different drive latters in include paths
https://github.com/ruby/rdoc/commit/946d2592e2
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_options.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb
index bc0fc8bcf1..140c4afc9b 100644
--- a/test/rdoc/test_rdoc_options.rb
+++ b/test/rdoc/test_rdoc_options.rb
@@ -507,8 +507,14 @@ rdoc_include:
assert_empty out
assert_empty err
- expected =
- Pathname(Dir.tmpdir).expand_path.relative_path_from @options.root
+ expected = nil
+ begin
+ expected =
+ Pathname(Dir.tmpdir).expand_path.relative_path_from @options.root
+ rescue ArgumentError
+ # On Windows, sometimes crosses different drive letters.
+ expected = Pathname(Dir.tmpdir).expand_path
+ end
assert_equal expected, @options.page_dir
assert_equal [Dir.tmpdir], @options.files