summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-10-28 13:39:37 +0900
committeraycabta <aycabta@gmail.com>2019-10-29 12:34:44 +0900
commit9525541d022c67f4a162f8221bae7de2a172f371 (patch)
treea412f1afff05f7798c95eac3c71175c0f4ee8a11 /test
parentc8ce37d4271a58132fb7fc5548e0ba7d85419152 (diff)
[ruby/rdoc] Use Dir.glob to convert short path of Dir.tmpdir to long path
https://github.com/ruby/rdoc/commit/ba16e44572
Diffstat (limited to 'test')
-rw-r--r--test/rdoc/test_rdoc_rdoc.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb
index 9471f3ef7b..f2cc901283 100644
--- a/test/rdoc/test_rdoc_rdoc.rb
+++ b/test/rdoc/test_rdoc_rdoc.rb
@@ -188,6 +188,10 @@ class TestRDocRDoc < RDoc::TestCase
FileUtils.touch a
FileUtils.touch b
FileUtils.touch c
+ # Use Dir.glob to convert short path of Dir.tmpdir to long path.
+ a = Dir.glob(a).first
+ b = Dir.glob(b).first
+ c = Dir.glob(c).first
dot_doc = File.expand_path('.document')
FileUtils.touch dot_doc
@@ -215,6 +219,10 @@ class TestRDocRDoc < RDoc::TestCase
FileUtils.touch a
FileUtils.touch b
FileUtils.touch c
+ # Use Dir.glob to convert short path of Dir.tmpdir to long path.
+ a = Dir.glob(a).first
+ b = Dir.glob(b).first
+ c = Dir.glob(c).first
dot_doc = File.expand_path('.document')
FileUtils.touch dot_doc