aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/test_case.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/test_case.rb')
-rw-r--r--lib/rubygems/test_case.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index 9776fb55b9..47fb9d4962 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -133,6 +133,8 @@ class Gem::TestCase < MiniTest::Unit::TestCase
# This makes the tempdir consistent on OS X.
# File.expand_path Dir.tmpdir #=> "/var/..."
# Dir.chdir Dir.tmpdir do File.expand_path '.' end #=> "/private/var/..."
+ # TODO use File#realpath above instead of #expand_path once 1.8 support is
+ # dropped.
Dir.chdir @tempdir do
@tempdir = File.expand_path '.'
@tempdir.untaint