# # Test tasks # def current_ruby `ruby -v`.split[0,2].join('-') end desc 'Run the tests' task :test do puts "Using #{current_ruby}" tests = Dir.glob('test/**/*_test.rb') sh('ruby', '-w', '-e', 'ARGV.dup.each {|test| load test}', *tests) end