Sha256: 1294075c3af84c240c88ad9d148d841bb6621577d021691fda08c7a5398bb9e6
Contents?: true
Size: 1.01 KB
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-3.0.5 | spec/spec_helper.rb |