Sha256: 65667331736b082596eb42b4a26e545f7907505e82f96a6acd63d68fb151dd26
Contents?: true
Size: 758 Bytes
Versions: 8
Compression:
Stored size: 758 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/philostler/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
8 entries across 8 versions & 1 rubygems