From 05184578d77e81c0e3e0940eb3f40d2a1ce99dcd Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 22 Mar 2011 01:59:18 +0000 Subject: * 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 --- lib/rubygems/test_case.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1