         # File lib/rake/testtask.rb, line 97
     97:     def define
     98:       lib_path = @libs.join(File::PATH_SEPARATOR)
     99:       desc "Run tests" + (@name==:test ? "" : " for #{@name}")
    100:       task @name do
    101:         run_code = ''
    102:         RakeFileUtils.verbose(@verbose) do
    103:           run_code =
    104:             case @loader
    105:             when :direct
    106:               "-e 'ARGV.each{|f| load f}'"
    107:             when :testrb
    108:               "-S testrb #{fix}"
    109:             when :rake
    110:               rake_loader
    111:             end
    112:           @ruby_opts.unshift( "-I\"#{lib_path}\"" )
    113:           @ruby_opts.unshift( "-w" ) if @warning
    114:           ruby @ruby_opts.join(" ") +
    115:             " \"#{run_code}\" " +
    116:             file_list.collect { |fn| "\"#{fn}\"" }.join(' ') +
    117:             " #{option_list}"
    118:         end
    119:       end
    120:       self
    121:     end