Fix for rake task for reductive-build library
James Turnbull
15 years ago
454 | 454 | |
455 | 455 | desc "Run all unit tests." |
456 | 456 | task :alltests do |
457 | if FileTest.exists?("test/Rakefile") | |
458 | sh %{cd test; rake} | |
457 | if FileTest.exists?("spec/Rakefile") | |
458 | sh %{cd spec; rake} | |
459 | 459 | else |
460 | Dir.chdir("test") do | |
460 | Dir.chdir("spec") do | |
461 | 461 | Dir.entries(".").find_all { |f| f =~ /\.rb/ }.each do |f| |
462 | 462 | sh %{ruby #{f}} |
463 | 463 | end |