diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mspec/lib/mspec/helpers/tmp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/mspec/lib/mspec/helpers/tmp.rb b/spec/mspec/lib/mspec/helpers/tmp.rb index 433c0b6d88..df242f73c1 100644 --- a/spec/mspec/lib/mspec/helpers/tmp.rb +++ b/spec/mspec/lib/mspec/helpers/tmp.rb @@ -6,9 +6,9 @@ SPEC_TEMP_DIR_PID = Process.pid SPEC_TEMP_DIR_LIST = [] if tmpdir = ENV['SPEC_TEMP_DIR'] - temppath = File.expand_path(tmpdir) + "/" + temppath = File.realdirpath(tmpdir) + "/" else - tmpdir = File.expand_path("rubyspec_temp") + tmpdir = File.realdirpath("rubyspec_temp") temppath = tmpdir + "/#{SPEC_TEMP_DIR_PID}" SPEC_TEMP_DIR_LIST << tmpdir end |