Skip to content

Commit

Permalink
Use Dir.glob to convert short path of Dir.tmpdir to long path
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Oct 28, 2019
1 parent 946d259 commit ba16e44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/rdoc/test_rdoc_rdoc.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ba16e44

Please sign in to comment.