1 2 3 4 5 6 7 8 9 10 11
task default: %w[test] task :test do Dir["./tests/*.rb"].each do |test_file| begin ruby test_file rescue puts "FAILED #{test_file}!" end end end