diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-06 04:45:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-06 04:45:38 +0000 |
commit | c520d1fc84c338db3370fc7086f2840daa361dc9 (patch) | |
tree | c1a1dc0ec8581b3f03a4f2f2608fecabd07912cd /lib/rake/testtask.rb | |
parent | 84880187bdfc63a4b7271b56505670bf9cc5f4bc (diff) |
* lib/rake/testtask.rb (Rake::TestTask#define): passes each libs
as each arguments with expanded. incorporated from rake 0.8.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rake/testtask.rb')
-rw-r--r-- | lib/rake/testtask.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rake/testtask.rb b/lib/rake/testtask.rb index cc73d7887f..3444012500 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}\" " + |