mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems/test_case.rb: Refix for test-all in separate directory.
r31147 + r31151. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
259f841698
commit
7ad690313b
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jun 3 21:48:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/rubygems/test_case.rb: Refix for test-all in separate directory.
|
||||||
|
r31147 + r31151.
|
||||||
|
|
||||||
Fri Jun 3 20:58:47 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
Fri Jun 3 20:58:47 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ext/date/date_core.c (d_lite_plus): get rid of compiler warnings.
|
* ext/date/date_core.c (d_lite_plus): get rid of compiler warnings.
|
||||||
|
|
|
@ -103,7 +103,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase
|
||||||
undef_method :default_test if instance_methods.include? 'default_test' or
|
undef_method :default_test if instance_methods.include? 'default_test' or
|
||||||
instance_methods.include? :default_test
|
instance_methods.include? :default_test
|
||||||
|
|
||||||
@@project_dir = Dir.pwd
|
@@project_dir = Dir.pwd unless defined?(@@project_dir)
|
||||||
|
|
||||||
##
|
##
|
||||||
# #setup prepares a sandboxed location to install gems. All installs are
|
# #setup prepares a sandboxed location to install gems. All installs are
|
||||||
|
@ -122,6 +122,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase
|
||||||
@orig_gem_home = ENV['GEM_HOME']
|
@orig_gem_home = ENV['GEM_HOME']
|
||||||
@orig_gem_path = ENV['GEM_PATH']
|
@orig_gem_path = ENV['GEM_PATH']
|
||||||
|
|
||||||
|
@current_dir = Dir.pwd
|
||||||
@ui = Gem::MockGemUi.new
|
@ui = Gem::MockGemUi.new
|
||||||
|
|
||||||
tmpdir = nil
|
tmpdir = nil
|
||||||
|
@ -228,7 +229,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase
|
||||||
Gem::RemoteFetcher.fetcher = nil
|
Gem::RemoteFetcher.fetcher = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
Dir.chdir @@project_dir
|
Dir.chdir @current_dir
|
||||||
|
|
||||||
FileUtils.rm_rf @tempdir unless ENV['KEEP_FILES']
|
FileUtils.rm_rf @tempdir unless ENV['KEEP_FILES']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue