Rakefile in ohm-0.1.0.rc2 vs Rakefile in ohm-0.1.0.rc4
- old
+ new
@@ -22,8 +22,16 @@
system "kill #{File.read(REDIS_PID)}"
system "rm #{REDIS_PID}"
end
end
-Rake::TestTask.new(:test) do |t|
- t.pattern = 'test/**/*_test.rb'
+task :test do
+ Dir["test/**/*_test.rb"].each do |file|
+ fork do
+ load file
+ end
+
+ Process.wait
+
+ exit $?.exitstatus unless $?.success?
+ end
end