diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-28 20:11:19 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-28 20:11:19 +0000 |
commit | d42df4914631d7a2b96edc7ee0197f2ad47f5c8e (patch) | |
tree | 2dec2bc853223d1b7342a4017f9f47bc9c7993ed /lib | |
parent | 030111ac9c00f6437263134b33a4fa616bac864c (diff) | |
download | ruby-d42df4914631d7a2b96edc7ee0197f2ad47f5c8e.tar.gz |
* lib/test/unit/parallel.rb: workaround fix for rubygems.
RubyGems can't find rake if the source directory is not equal to
the directory which is running the test. [Bug #6604]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test/unit/parallel.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/test/unit/parallel.rb b/lib/test/unit/parallel.rb index b3f2eeae05..65a8264ea2 100644 --- a/lib/test/unit/parallel.rb +++ b/lib/test/unit/parallel.rb @@ -169,6 +169,10 @@ if $0 == __FILE__ end end end + require 'rubygems' + class Gem::TestCase < MiniTest::Unit::TestCase + @@project_dir = File.expand_path('../../../..', __FILE__) + end Test::Unit::Worker.new.run(ARGV) end |