spec/adapter_spec.rb in queue-bus-0.5.9 vs spec/adapter_spec.rb in queue-bus-0.6.0
- old
+ new
@@ -1,14 +1,14 @@
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!)
+ 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
- QueueBus.adapter.is_a?(adapter_under_test_class).should == true
+ expect(QueueBus.adapter.is_a?(adapter_under_test_class)).to eq(true)
end
end