mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
28 lines
476 B
Ruby
28 lines
476 B
Ruby
if ENV["COVERAGE"]
|
|
require 'simplecov'
|
|
SimpleCov.start { add_filter "/test/" }
|
|
end
|
|
|
|
require 'minitest/autorun'
|
|
require 'mocha/setup'
|
|
require 'rack/test'
|
|
|
|
require 'sidekiq'
|
|
require 'sidekiq/testing'
|
|
|
|
require 'sidetiq'
|
|
require 'sidetiq/web'
|
|
|
|
# Keep the test output clean
|
|
Sidekiq.logger = Logger.new(nil)
|
|
|
|
class Sidetiq::TestCase < MiniTest::Unit::TestCase
|
|
def setup
|
|
Sidekiq.redis { |r| r.flushall }
|
|
end
|
|
|
|
def clock
|
|
@clock ||= Sidetiq::Clock.instance
|
|
end
|
|
end
|
|
|