Sha256: ddfe0b4a8da79a15f4d044bc46fbcf302e4241255965b4866332bde21ad91a0f

Contents?: true

Size: 451 Bytes

Versions: 8

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'adapter is set' do
  it "should call it's enabled! method on init" do
    QueueBus.send(:reset)
    expect_any_instance_of(adapter_under_test_class).to receive(:enabled!)
    instance = adapter_under_test_class.new
    QueueBus.send(:reset)
  end

  it 'should be defaulting to Data from spec_helper' do
    expect(QueueBus.adapter.is_a?(adapter_under_test_class)).to eq(true)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
queue-bus-0.13.3 spec/adapter_spec.rb
queue-bus-0.13.2 spec/adapter_spec.rb
queue-bus-0.13.1 spec/adapter_spec.rb
queue-bus-0.13.0 spec/adapter_spec.rb
queue-bus-0.12.0 spec/adapter_spec.rb
queue-bus-0.11.0 spec/adapter_spec.rb
queue-bus-0.10.0 spec/adapter_spec.rb
queue-bus-0.9.1 spec/adapter_spec.rb