Sha256: 4ee957e566fa49e9ec9a6629bbfc38afa97e94da7cf891df1b987c2418f05ebd

Contents?: true

Size: 408 Bytes

Versions: 27

Compression:

Stored size: 408 Bytes

Contents

require 'spec_helper'

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

  it "should be defaulting to Data from spec_helper" do
    QueueBus.adapter.is_a?(adapter_under_test_class).should == true
  end
end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
resque-bus-0.7.0 spec/adapter_spec.rb
resque-bus-0.6.1 spec/adapter_spec.rb
resque-bus-0.6.0 spec/adapter_spec.rb
sidekiq-bus-0.5.10 spec/adapter_spec.rb
sidekiq-bus-0.5.9 spec/adapter_spec.rb
resque-bus-0.5.12 spec/adapter_spec.rb
queue-bus-0.5.9 spec/adapter_spec.rb
resque-bus-0.5.11 spec/adapter_spec.rb
queue-bus-0.5.8 spec/adapter_spec.rb
sidekiq-bus-0.5.7 spec/adapter_spec.rb
sidekiq-bus-0.5.6 spec/adapter_spec.rb
resque-bus-0.5.10 spec/adapter_spec.rb
queue-bus-0.5.7 spec/adapter_spec.rb
sidekiq-bus-0.5.5 spec/adapter_spec.rb
resque-bus-0.5.9 spec/adapter_spec.rb
sidekiq-bus-0.5.4 spec/adapter_spec.rb
resque-bus-0.5.8 spec/adapter_spec.rb
queue-bus-0.5.6 spec/adapter_spec.rb
resque-bus-0.5.7 spec/adapter_spec.rb
queue-bus-0.5.5 spec/adapter_spec.rb