task :test do $:.unshift './test' require File.basename('test/test.rb') end task :default => :test