Codebase list facter / c754949
Fix for rake task for reductive-build library James Turnbull 15 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
454454
455455 desc "Run all unit tests."
456456 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}
459459 else
460 Dir.chdir("test") do
460 Dir.chdir("spec") do
461461 Dir.entries(".").find_all { |f| f =~ /\.rb/ }.each do |f|
462462 sh %{ruby #{f}}
463463 end