Skip to content

Commit ba16e44

Browse files
committed
Use Dir.glob to convert short path of Dir.tmpdir to long path
1 parent 946d259 commit ba16e44

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/rdoc/test_rdoc_rdoc.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ def test_normalized_file_list_with_dot_doc
190190
FileUtils.touch a
191191
FileUtils.touch b
192192
FileUtils.touch c
193+
# Use Dir.glob to convert short path of Dir.tmpdir to long path.
194+
a = Dir.glob(a).first
195+
b = Dir.glob(b).first
196+
c = Dir.glob(c).first
193197

194198
dot_doc = File.expand_path('.document')
195199
FileUtils.touch dot_doc
@@ -217,6 +221,10 @@ def test_normalized_file_list_with_dot_doc_overridden_by_exclude_option
217221
FileUtils.touch a
218222
FileUtils.touch b
219223
FileUtils.touch c
224+
# Use Dir.glob to convert short path of Dir.tmpdir to long path.
225+
a = Dir.glob(a).first
226+
b = Dir.glob(b).first
227+
c = Dir.glob(c).first
220228

221229
dot_doc = File.expand_path('.document')
222230
FileUtils.touch dot_doc

0 commit comments

Comments
 (0)