Sha256: d8a88e640ae7268608a6237ce292357144143e2d585e4ac9056ed981dd467254
Contents?: true
Size: 756 Bytes
Versions: 2
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/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-sidekiq-1.1.0 | lib/rspec/sidekiq/sidekiq.rb |
rspec-sidekiq-1.0.0 | lib/rspec/sidekiq/sidekiq.rb |