test/test_helper.rb in onyx-resque-retry-0.1.0 vs test/test_helper.rb in onyx-resque-retry-0.1.1

- old
+ new

@@ -4,10 +4,11 @@ require 'test/unit' require 'rubygems' require 'turn' require 'simplecov' +require 'mocha' SimpleCov.start do add_filter "/test/" end @@ -26,14 +27,10 @@ # start our own redis when the tests start, # kill it when they end at_exit do next if $! - if defined?(MiniTest) - exit_code = MiniTest::Unit.new.run(ARGV) - else - exit_code = Test::Unit::AutoRunner.run - end + exit_code = Test::Unit::AutoRunner.run pid = `ps -e -o pid,command | grep [r]edis-test`.split(" ")[0] puts "Killing test redis server..." `rm -f #{dir}/dump.rdb` Process.kill("KILL", pid.to_i)