Sha256: f5267bd1e4e6bfd5497144b295e645bb7b4e685b4e109d06930054dd5387a8b6

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

module ControllerSpecHelpers
  def stub_scheduler(stubbed_scheduler)
    allow(Dashing.config).to receive(:scheduler).and_return(stubbed_scheduler)
  end

  def stub_redis(stubbed_redis)
    allow(Dashing.config).to receive(:redis).and_return(stubbed_redis)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dashing-rails-2.6.1 spec/support/controller_spec_helpers.rb
dashing-rails-2.6.0 spec/support/controller_spec_helpers.rb