Sha256: 9fb2fb24959f2db6f160a9ef742fe3fd6a95d558bb669d971ce5de41ad6edb95
Contents?: true
Size: 1018 Bytes
Versions: 5
Compression:
Stored size: 1018 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'pry' require 'support/active_record' require 'sidekiq' require 'sidekiq/testing/inline' require 'sidekiq/api' require 'reactor' require 'reactor/testing/matchers' Sidekiq.configure_server do |config| config.redis = { url: ENV["REDISTOGO_URL"] } database_url = ENV['DATABASE_URL'] if database_url ENV['DATABASE_URL'] = "#{database_url}?pool=25" ActiveRecord::Base.establish_connection end end Sidekiq.configure_client do |config| config.redis = { url: ENV["REDISTOGO_URL"] } end RSpec.configure do |config| # some (optional) config here config.treat_symbols_as_metadata_keys_with_true_values = true # Runs Sidekiq jobs inline by default unless the RSpec metadata :sidekiq is specified, # in which case it will use the real Redis-backed Sidekiq queue config.before(:each, :sidekiq) do Sidekiq.redis{|r| r.flushall } Sidekiq::Testing.disable! end config.after(:each, :sidekiq) do Sidekiq::Testing.inline! end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
reactor-0.8.2 | spec/spec_helper.rb |
reactor-0.8.1 | spec/spec_helper.rb |
reactor-0.8.0 | spec/spec_helper.rb |
reactor-0.7.1 | spec/spec_helper.rb |
reactor-0.7.0 | spec/spec_helper.rb |