spec/processor_spec.rb in alephant-publisher-0.5.1 vs spec/processor_spec.rb in alephant-publisher-0.6.1

- old
+ new

@@ -1,11 +1,11 @@ require 'spec_helper' describe Alephant::Publisher::Processor do before(:each) do - Alephant::Publisher::Writer.any_instance.stub(:initialize) - Alephant::Publisher::Writer.any_instance.stub(:run!) + allow_any_instance_of(Alephant::Publisher::Writer).to receive(:initialize) + allow_any_instance_of(Alephant::Publisher::Writer).to receive(:run!) end describe "#consume(msg)" do it "Consume the message and deletes it" do