Sha256: 6e4a4f496c3c147f17fb2ab030c6b02337438386768e6392a7ea3bfc3c9cbf1f

Contents?: true

Size: 323 Bytes

Versions: 6

Compression:

Stored size: 323 Bytes

Contents

RSpec.configure do |config|
  config.before(:each) do |example|
    if (sidekiq = example.metadata[:sidekiq])
      sidekiq = :fake if sidekiq == true
      Sidekiq::Testing.send("#{sidekiq}!")
    end
  end

  config.after(:each) do |example|
    Sidekiq::Testing.disable! unless example.metadata[:sidekiq].nil?
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-5.0.2 rails_example/spec/support/sidekiq_meta.rb
sidekiq-unique-jobs-5.0.1 rails_example/spec/support/sidekiq_meta.rb
sidekiq-unique-jobs-5.0.0 rails_example/spec/support/sidekiq_meta.rb
sidekiq-unique-jobs-4.0.18 rails_example/spec/support/sidekiq_meta.rb
sidekiq-unique-jobs-3.0.7 spec/support/sidekiq_meta.rb
sidekiq-unique-jobs-3.0.5 spec/support/sidekiq_meta.rb