diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-03 05:11:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-03 05:11:58 +0000 |
commit | 8cbd501ed052962e35ffdc2966daa8d696a9a83b (patch) | |
tree | 05136819b44b5af5f7d6499e208dff2b185b5e05 /test/ruby/test_rubyoptions.rb | |
parent | 87e185da06fba4ab6316db3dedd5a3806c1a7f18 (diff) |
test/ruby: independent from pathname
* test/ruby/test_dir.rb (TestDir#setup): remove dependency on pathname.
* test/ruby/test_rubyoptions.rb (TestRubyOptions#with_tmpchdir): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index c06d554cd9..486b68654d 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -3,7 +3,6 @@ require 'test/unit' require 'tmpdir' require 'tempfile' -require 'pathname' require_relative 'envutil' @@ -16,7 +15,7 @@ class TestRubyOptions < Test::Unit::TestCase def with_tmpchdir Dir.mktmpdir {|d| - d = Pathname.new(d).realpath.to_s + d = File.realpath(d) Dir.chdir(d) { yield d } |