From 3f75886bcc1c48f5edde97058547aaf9dde86b1f Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Tue, 20 Mar 2018 15:55:34 +0900 Subject: [PATCH] expand temp dir used by File.realpath. It was failed on macOS. --- test/test_rdoc_rdoc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_rdoc_rdoc.rb b/test/test_rdoc_rdoc.rb index 7c54e543f9..4014ecfa54 100644 --- a/test/test_rdoc_rdoc.rb +++ b/test/test_rdoc_rdoc.rb @@ -200,7 +200,7 @@ def test_normalized_file_list_with_dot_doc expected_files << a expected_files << b - @rdoc.normalized_file_list [dir] + @rdoc.normalized_file_list [File.realpath(dir)] end files = files.map { |file| File.expand_path file } @@ -227,7 +227,7 @@ def test_normalized_file_list_with_dot_doc_overridden_by_exclude_option expected_files << a @rdoc.options.exclude = Regexp.new(['b.rb'].join('|')) - @rdoc.normalized_file_list [dir] + @rdoc.normalized_file_list [File.realpath(dir)] end files = files.map { |file| File.expand_path file }