Sha256: 6795f7dcf4b9623e0ee03aa4a3d845e0e2bf9a5cc590dbc7d7d009708d74b54a

Contents?: true

Size: 928 Bytes

Versions: 4

Compression:

Stored size: 928 Bytes

Contents

$LOAD_PATH << "." unless $LOAD_PATH.include?(".")

require 'rubygems'
require 'bundler/setup'
require 'timecop'
require 'simplecov'
require 'celluloid/autostart'
require 'sidekiq'
require 'rspec-sidekiq'
require 'support/test_workers'

SimpleCov.start do
  add_filter 'spec'
end

require 'sidekiq/grouping'

Sidekiq::Grouping.logger = nil
Sidekiq.redis = { namespace: ENV['namespace'] }
Sidekiq.logger = nil

RSpec::Sidekiq.configure do |config|
  config.clear_all_enqueued_jobs = true
  config.warn_when_jobs_not_processed_by_sidekiq = false
end

RSpec.configure do |config|
  config.order = :random
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  config.before :each do
    Sidekiq.redis do |conn|
      keys = conn.keys '*batching*'
      keys.each { |key| conn.del key }
    end
  end

  config.after :each do
    Timecop.return
  end
end

$: << File.join(File.dirname(__FILE__), '..', 'lib')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-grouping-1.0.4 spec/spec_helper.rb
sidekiq-grouping-1.0.3 spec/spec_helper.rb
sidekiq-grouping-1.0.2 spec/spec_helper.rb
sidekiq-grouping-1.0.1 spec/spec_helper.rb