1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-07-03 05:11:58 +00:00
parent 87e185da06
commit 8cbd501ed0
2 changed files with 2 additions and 4 deletions

View file

@ -2,14 +2,13 @@ require 'test/unit'
require 'tmpdir'
require 'fileutils'
require 'pathname'
class TestDir < Test::Unit::TestCase
def setup
@verbose = $VERBOSE
$VERBOSE = nil
@root = Pathname.new(Dir.mktmpdir('__test_dir__')).realpath.to_s
@root = File.realpath(Dir.mktmpdir('__test_dir__'))
@nodir = File.join(@root, "dummy")
for i in ?a..?z
if i.ord % 2 == 0

View file

@ -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
}