Sha256: 58dca4b2803436eee5c34df375e3f8df5785763126912abd00fcbf30c2d55516

Contents?: true

Size: 767 Bytes

Versions: 8

Compression:

Stored size: 767 Bytes

Contents

$TESTING = true
require 'coveralls'
Coveralls.wear! do
  add_filter "/test/"
end

ENV['RACK_ENV'] = ENV['RAILS_ENV'] = 'test'
if ENV.has_key?("SIMPLECOV")
  require 'simplecov'
  SimpleCov.start do
    add_filter "/test/"
  end
end

begin
  require 'pry'
rescue LoadError
end

require 'minitest/autorun'
require 'minitest/pride'

require 'celluloid/test'
Celluloid.boot
require 'sidekiq'
require 'sidekiq/util'
Sidekiq.logger.level = Logger::ERROR

Sidekiq::Test = MiniTest::Unit::TestCase

require 'sidekiq/redis_connection'
redis_url = ENV['REDIS_URL'] || 'redis://localhost/15'
REDIS = Sidekiq::RedisConnection.create(:url => redis_url, :namespace => 'testy')

Sidekiq.configure_client do |config|
  config.redis = { :url => redis_url, :namespace => 'testy' }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sidekiq-2.17.4 test/helper.rb
sidekiq-2.17.3 test/helper.rb
sidekiq-2.17.2 test/helper.rb
sidekiq-2.17.1 test/helper.rb
sidekiq-2.17.0 test/helper.rb
sidekiq-2.16.1 test/helper.rb
sidekiq-2.16.0 test/helper.rb
sidekiq-2.15.2 test/helper.rb