From ba16e445726fc5f11dce4bbcb7e7e4a4c4992c9b Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 28 Oct 2019 13:39:37 +0900 Subject: [PATCH] Use Dir.glob to convert short path of Dir.tmpdir to long path --- test/rdoc/test_rdoc_rdoc.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb index 1606a9d6b1..6720509ddb 100644 --- a/test/rdoc/test_rdoc_rdoc.rb +++ b/test/rdoc/test_rdoc_rdoc.rb @@ -190,6 +190,10 @@ def test_normalized_file_list_with_dot_doc 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 @@ -217,6 +221,10 @@ def test_normalized_file_list_with_dot_doc_overridden_by_exclude_option 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