aboutsummaryrefslogtreecommitdiffstats
path: root/test/rake/helper.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 19:16:46 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 19:16:46 +0000
commitd1d4490a57413ff5cb7e8bd0274bb34c7da68d29 (patch)
tree70596346a7f5f13d846cda7353fb8474baf4ad7e /test/rake/helper.rb
parent40bae2f67c1160e1e59018c1003d014c60d1ee47 (diff)
downloadruby-d1d4490a57413ff5cb7e8bd0274bb34c7da68d29.tar.gz
* lib/rake/*: Updated to rake 0.9.5
* test/rake/*: ditto. * NEWS: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rake/helper.rb')
-rw-r--r--test/rake/helper.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/rake/helper.rb b/test/rake/helper.rb
index 288ff0e3b2..8c228c5cfa 100644
--- a/test/rake/helper.rb
+++ b/test/rake/helper.rb
@@ -31,6 +31,19 @@ class Rake::TestCase < MiniTest::Unit::TestCase
def setup
ARGV.clear
+ test_dir = File.basename File.dirname File.expand_path __FILE__
+
+ @rake_root = if test_dir == 'test' then
+ # rake repository
+ File.expand_path '../../', __FILE__
+ else
+ # ruby repository
+ File.expand_path '../../../', __FILE__
+ end
+
+ @rake_exec = File.join @rake_root, 'bin', 'rake'
+ @rake_lib = File.join @rake_root, 'lib'
+
@orig_PWD = Dir.pwd
@orig_APPDATA = ENV['APPDATA']
@orig_HOME = ENV['HOME']