Sha256: 1d88a609a77472c97445c314c208aa6bd146b922bf0ebfd43362e02ee631e1e3
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
require 'simplecov' SimpleCov.start require "wamp/worker" if ENV['CODECOV_TOKEN'] require 'codecov' SimpleCov.formatter = SimpleCov::Formatter::Codecov end Dir[File.expand_path('spec/support/**/*.rb')].each { |f| require f } require 'sidekiq/testing' Sidekiq::Testing.inline! Wamp::Worker.log_level = :error RSpec.configure do |config| config.before(:each) { stub_redis stub_client } end def stub_redis allow(::Redis).to receive(:new).and_return(RedisStub.new) end def stub_client allow(::Wamp::Client::Connection).to receive(:new).and_return(ClientStub.new({})) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wamp-worker-0.1.1 | spec/spec_helper.rb |