spec/qe/testing_spec.rb in qe-0.3.4 vs spec/qe/testing_spec.rb in qe-0.3.5
- old
+ new
@@ -21,13 +21,13 @@
it "runs jobs" do
Qe::Testing.enqueue(HelloWorker, a: 1)
instance = double.as_null_object
- instance.should_receive(:perform)
+ expect(instance).to receive(:perform)
- HelloWorker
- .should_receive(:new)
+ expect(HelloWorker)
+ .to receive(:new)
.with(a: 1)
.and_return(instance)
Qe.drain
end