Sha256: d2afdda2be46ecdd5503f2d560e087796d27de3a02d12941ddda846aeb0c84b6
Contents?: true
Size: 756 Bytes
Versions: 6
Compression:
Stored size: 756 Bytes
Contents
module RSpec module Sidekiq class << self def configure(&block) yield configuration if block end def configuration @configuration ||= Configuration.new end end end end RSpec.configure do |config| config.before(:suite) do message = '[rspec-sidekiq] WARNING! Sidekiq will *NOT* process jobs in this environment. See https://github.com/wspurgin/rspec-sidekiq/wiki/FAQ-&-Troubleshooting' message = "\e[33m#{message}\e[0m" if RSpec::Sidekiq.configuration.enable_terminal_colours puts message if RSpec::Sidekiq.configuration.warn_when_jobs_not_processed_by_sidekiq end config.before(:each) do Sidekiq::Worker.clear_all if RSpec::Sidekiq.configuration.clear_all_enqueued_jobs end end
Version data entries
6 entries across 6 versions & 1 rubygems