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:
parent
b98d707de1
commit
3a257cc412
2 changed files with 10 additions and 5 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue