Sha256: 2fbdd848e52a87621136f8f0a9169761d164344885223a4ea933e863bbb2d0af

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

require 'sidekiq'
require 'sidekiq/testing'
require 'mock_redis'

# Disable Sidekiq's testing mocks and use MockRedis instead
Sidekiq::Testing.disable!

Sidekiq.configure_server do |config|
  config.redis = ConnectionPool.new(size: 1) { MockRedis.new }
end
Sidekiq.configure_client do |config|
  config.client_middleware do |chain|
    chain.add Sidekiq::QuickDebounce
  end

  config.redis = ConnectionPool.new(size: 1) { MockRedis.new }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-quick-debounce-0.0.1 spec/sidekiq_helper.rb