1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/test/helper.rb
Kurtis Rainbolt-Greene 4c586bfdb6 Adding coveralls support
2013-03-13 14:16:47 -07:00

26 lines
514 B
Ruby

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
end
begin
require 'pry'
rescue LoadError
end
require 'minitest/unit'
require 'minitest/autorun'
require 'minitest/emoji'
require 'sidekiq'
require 'sidekiq/util'
Sidekiq.logger.level = Logger::ERROR
require 'sidekiq/redis_connection'
REDIS = Sidekiq::RedisConnection.create(:url => "redis://localhost/15", :namespace => 'testy')