Sha256: 1246d934237ec5d0d3edfa60bec5bcc45cf6f9301504c20ff41bbf10db41bba9
Contents?: true
Size: 935 Bytes
Versions: 2
Compression:
Stored size: 935 Bytes
Contents
$LOAD_PATH << "." unless $LOAD_PATH.include?(".") require 'rubygems' require 'bundler/setup' require 'timecop' require 'simplecov' require 'celluloid/autostart' require 'sidekiq' require 'rspec-sidekiq' require 'support/test_workers' SimpleCov.start do add_filter 'spec' end require 'sidekiq/batching' Sidekiq::Batching.logger = nil Sidekiq.redis = { namespace: ENV['namespace'] } Sidekiq.logger = nil RSpec::Sidekiq.configure do |config| config.clear_all_enqueued_jobs = true end RSpec.configure do |config| config.order = :random config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus config.before :each do Sidekiq.redis do |conn| keys = conn.keys '*batching*' keys.each { |key| conn.del key } end end config.after :each do Timecop.return end end $: << File.join(File.dirname(__FILE__), '..', 'lib')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-batching-0.0.5 | spec/spec_helper.rb |
sidekiq-batching-0.0.4 | spec/spec_helper.rb |