Sha256: faa3bb699b15e741ead36719853f36368de58808fbd7a3689a2553251a3b2764

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

require 'simplecov'
SimpleCov.start do
  add_filter 'spec/'
end

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "wamp/worker"

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.0 spec/spec_helper.rb