1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00

Manually override celluloid's at_exit hook during tests.

This commit is contained in:
Tobias Svensson 2013-09-17 12:31:09 +01:00
parent b98d707de1
commit 3a257cc412
2 changed files with 10 additions and 5 deletions

View file

@ -28,6 +28,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'sinatra'
gem.add_development_dependency 'mocha'
gem.add_development_dependency 'rack-test'
gem.add_development_dependency 'minitest', '~> 5.0.7'
if RUBY_PLATFORM != "java"
gem.add_development_dependency 'coveralls'

View file

@ -3,13 +3,13 @@ if RUBY_PLATFORM != "java"
Coveralls.wear!
end
require 'minitest/autorun'
require 'mocha/setup'
require 'rack/test'
require 'sidekiq'
require 'sidekiq/testing'
require 'minitest'
require 'mocha/setup'
require 'rack/test'
require 'sidetiq'
require 'sidetiq/web'
require 'sidetiq/lock/watcher'
@ -45,7 +45,7 @@ class Sidekiq::Client
end
end
class Sidetiq::TestCase < MiniTest::Unit::TestCase
class Sidetiq::TestCase < MiniTest::Test
def setup
Sidekiq.redis { |r| r.flushall }
end
@ -66,3 +66,7 @@ class Sidetiq::TestCase < MiniTest::Unit::TestCase
end
end
# Override Celluloid's at_exit hook.
at_exit {
Minitest.run ARGV
}