From fe4ceb25b907b5cc5af46cc0d32ca67b10d7d7d5 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 23 Jul 2011 11:21:55 +0000 Subject: * test/rake/test_rake_functional.rb (setup): Use __FILE__ for the base directory. Current directory is not the top source directory when the building process runs on other than there. * test/rake/test_rake_rake_test_loader.rb: ditto. * test/rake/test_rake_task_argument_parsing.rb (test_terminal_width_using_hardcoded_80): hardcoded 80 is used when app.unix? is false. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rake/test_rake_functional.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/rake/test_rake_functional.rb') diff --git a/test/rake/test_rake_functional.rb b/test/rake/test_rake_functional.rb index 9b3afedc44..bfa9375a39 100644 --- a/test/rake/test_rake_functional.rb +++ b/test/rake/test_rake_functional.rb @@ -5,8 +5,8 @@ require 'open3' class TestRakeFunctional < Rake::TestCase def setup - @rake_path = File.expand_path("bin/rake") - lib_path = File.expand_path("lib") + @rake_path = File.expand_path("../../../bin/rake", __FILE__) + lib_path = File.expand_path("../../../lib", __FILE__) @ruby_options = ["-I#{lib_path}", "-I."] @verbose = ENV['VERBOSE'] -- cgit v1.2.3