Sha256: f6e48daf549e00ac3f52b8fb009010fd57303f7c3516c32fa36a4a1e0db0121b

Contents?: true

Size: 1023 Bytes

Versions: 5

Compression:

Stored size: 1023 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

WORKERS = File.join(File.dirname(__FILE__), 'app', 'workers')
$LOAD_PATH.unshift(WORKERS)

unless ENV['CI']
  require 'simplecov'
  SimpleCov.start do
    add_filter '/spec/'
  end
end

require 'rspec'
require 'timecop'

require 'sidekiq/throttler'

# Autoload every worker for the test suite that sits in spec/app/workers
Dir[File.join(WORKERS, '*.rb')].sort.each do |file|
  name = File.basename(file, '.rb')
  autoload name.camelize.to_sym, name
end

RSpec.configure do |config|
  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = 'random'
end

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sidekiq-throttler-0.5.1 spec/spec_helper.rb
sidekiq-throttler-0.4.1 spec/spec_helper.rb
sidekiq-throttler-0.4.0 spec/spec_helper.rb
sidekiq-throttler-0.3.1 spec/spec_helper.rb
sidekiq-throttler-0.3.0 spec/spec_helper.rb