require 'rake/testtask' test_dir = File.expand_path('test') Rake::TestTask.new("test") do |t| t.pattern = "test/test_*.rb" t.warning = true end