Sha256: 48194b952f7754a01bc2c149d06dc89c4514599e01d17b40f6ff487c6440b31d
Contents?: true
Size: 526 Bytes
Versions: 7
Compression:
Stored size: 526 Bytes
Contents
begin require 'sidekiq/testing' RSpec.configure do |config| config.before(:each) do # Clears out the jobs for tests using the fake testing Sidekiq::Worker.clear_all if example.metadata[:queue] == :stub Sidekiq::Testing.fake! elsif example.metadata[:queue] == :immediately_execute Sidekiq::Testing.inline! elsif example.metadata[:type] == :acceptance Sidekiq::Testing.inline! else Sidekiq::Testing.fake! end end end rescue LoadError end
Version data entries
7 entries across 7 versions & 1 rubygems