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 | |
parent | 84880187bdfc63a4b7271b56505670bf9cc5f4bc (diff) | |
download | ruby-c520d1fc84c338db3370fc7086f2840daa361dc9.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rake/testtask.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri Mar 6 13:45:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/rake/testtask.rb (Rake::TestTask#define): passes each libs + as each arguments with expanded. incorporated from rake 0.8.4. + Thu Mar 5 18:36:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * numeric.c (flo_to_s): keeps enough precision for round trip. 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}\" " + |