Sha256: fe59552423f8bd8b0caf2c74668ae2d604ffe8e811a5a0212cf2be348a83ca6e

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

begin
  require 'pry'
rescue LoadError
  puts 'Pry unavailable'
end

require 'rspec'

require 'celluloid/test'
require 'sidekiq'
require 'sidekiq/util'
require 'sidekiq-unique-jobs'
Sidekiq.logger.level = Logger::ERROR

require 'rspec-sidekiq'

Sidekiq::Testing.disable!

require 'sidekiq/redis_connection'
redis_url = ENV['REDIS_URL'] || 'redis://localhost/15'
REDIS = Sidekiq::RedisConnection.create(url: redis_url, namespace: 'testy')

Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each { |f| require f }
RSpec.configure do |_config|
  # config.treat_symbols_as_metadata_keys_with_true_values = true
end

RSpec::Sidekiq.configure do |config|
  # Clears all job queues before each example
  config.clear_all_enqueued_jobs = true # default => true

  # Whether to use terminal colours when outputting messages
  config.enable_terminal_colours = true # default => true

  # Warn when jobs are not enqueued to Redis but to a job array
  config.warn_when_jobs_not_processed_by_sidekiq = true # default => true
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-3.0.12 spec/spec_helper.rb
sidekiq-unique-jobs-3.0.11 spec/spec_helper.rb
sidekiq-unique-jobs-3.0.10 spec/spec_helper.rb
sidekiq-unique-jobs-3.0.9 spec/spec_helper.rb
sidekiq-unique-jobs-3.0.8 spec/spec_helper.rb
sidekiq-unique-jobs-3.0.7 spec/spec_helper.rb