Sha256: 5823de2c3682cef804142850fdc0cc54c4f5ff93c88857d6bbb5292d272c14bc

Contents?: true

Size: 536 Bytes

Versions: 14

Compression:

Stored size: 536 Bytes

Contents

begin
  require 'sidekiq/testing'

  RSpec.configure do |config|
    config.before(:each) do |example|
      # 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

14 entries across 14 versions & 1 rubygems

Version Path
rspectacular-0.23.1 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.23.0 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.22.2 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.22.1 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.22.0 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.21.6 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.21.5 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.21.4 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.21.3 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.21.2 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.21.1 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.21.0 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.20.0 lib/rspectacular/plugins/sidekiq.rb
rspectacular-0.19.0 lib/rspectacular/plugins/sidekiq.rb