diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-22 01:59:18 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-03-22 01:59:18 +0000 |
commit | 05184578d77e81c0e3e0940eb3f40d2a1ce99dcd (patch) | |
tree | ab75f05157b908016974719c4e783c9205db6bc1 /lib | |
parent | 2c1936cf87184470308b6bf3f0fe70f1a99936af (diff) | |
download | ruby-05184578d77e81c0e3e0940eb3f40d2a1ce99dcd.tar.gz |
* test/runner.rb: set Gem::TestCase's @@project_dir.
* lib/rubygems/test_case.rb: set Gem::TestCase's @@project_dir only
when it is not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index 0f3b892eb1..3b6b3c7f7f 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -87,7 +87,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase undef_method :default_test if instance_methods.include? 'default_test' or 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 |