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

Version Path
rspectacular-0.18.0 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.17.1 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.17.0 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.16.0 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.15.2 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.15.1 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.15.0 lib/rspectacular/plugins/sidekiq.rb