summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 04:45:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 04:45:38 +0000
commit95c35a45a523dcc30d53b42a0a18a05789f69e86 (patch)
treec1a1dc0ec8581b3f03a4f2f2608fecabd07912cd /lib
parentb24842185c7c45cee7835344c81d1d6da538ffeb (diff)
downloadruby-95c35a45a523dcc30d53b42a0a18a05789f69e86.tar.gz
ruby-95c35a45a523dcc30d53b42a0a18a05789f69e86.tar.xz
ruby-95c35a45a523dcc30d53b42a0a18a05789f69e86.zip
* lib/rake/testtask.rb (Rake::TestTask#define): passes each libs
as each arguments with expanded. incorporated from rake 0.8.4. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rake/testtask.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rake/testtask.rb b/lib/rake/testtask.rb
index cc73d7887..344401250 100644
--- a/lib/rake/testtask.rb
+++ b/lib/rake/testtask.rb
@@ -93,7 +93,7 @@ module Rake
# Create the tasks defined by this task lib.
def define
- lib_path = @libs.join(File::PATH_SEPARATOR)
+ lib_path = @libs.collect {|path| "-I#{File.expand_path(path)}"}
desc "Run tests" + (@name==:test ? "" : " for #{@name}")
task @name do
run_code = ''
@@ -107,7 +107,7 @@ module Rake
when :rake
rake_loader
end
- @ruby_opts.unshift( "-I#{lib_path}" )
+ @ruby_opts.unshift( *lib_path )
@ruby_opts.unshift( "-w" ) if @warning
ruby @ruby_opts.join(" ") +
" \"#{run_code}\" " +