Show
Ignore:
Timestamp:
01/22/08 18:38:50 (10 months ago)
Author:
hsbt
Message:

platform/tdiary/Rakefile: use rake/testtask.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/Rakefile

    r5282 r5287  
    2727desc 'Run all tests' 
    2828task :test do 
    29   test_files     = FileList[File.join('test', '**', '*_test.rb')] 
    30   opt_load_paths = [File.join(package[:root], 'plugin')].map{|path| "-I#{path}" }.join(' ') 
    31   test_files.each do |t| 
    32     ruby opt_load_paths, t 
    33   end 
     29        require 'rake/testtask' 
     30        Rake::TestTask.new do |t| 
     31                t.test_files = FileList[File.join('test', '**', '*_test.rb')] 
     32                t.ruby_opts << [File.join(package[:root], 'plugin')].map{|path| "-I#{path}" }.join(' ') 
     33        end 
    3434end 
    3535