зеркало из https://github.com/github/ruby.git
* lib/rubygems/test_case.rb: save current dir to @current_dir
before Dir.chdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4520a3408a
Коммит
f06ec31c54
|
@ -1,3 +1,8 @@
|
|||
Tue Mar 22 21:20:10 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/rubygems/test_case.rb: save current dir to @current_dir
|
||||
before Dir.chdir.
|
||||
|
||||
Tue Mar 22 20:10:04 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/psych/parser.c: parenthesize macro arguments.
|
||||
|
|
|
@ -106,6 +106,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase
|
|||
@orig_gem_home = ENV['GEM_HOME']
|
||||
@orig_gem_path = ENV['GEM_PATH']
|
||||
|
||||
@current_dir = Dir.pwd
|
||||
@ui = Gem::MockGemUi.new
|
||||
tmpdir = nil
|
||||
Dir.chdir Dir.tmpdir do tmpdir = Dir.pwd end # HACK OSX /private/tmp
|
||||
|
@ -208,7 +209,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase
|
|||
Gem::RemoteFetcher.fetcher = nil
|
||||
end
|
||||
|
||||
Dir.chdir @@project_dir
|
||||
Dir.chdir @current_dir
|
||||
|
||||
FileUtils.rm_rf @tempdir unless ENV['KEEP_FILES']
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче