We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a1c712 commit 7e972d7Copy full SHA for 7e972d7
spec/worker_spec.rb
@@ -106,7 +106,7 @@
106
expect(Delayed::Job).to receive(:reserve).exactly(10).times.and_raise(Exception)
107
worker = Delayed::Worker.new
108
9.times { worker.work_off }
109
- expect(lambda { worker.work_off }).to raise_exception Delayed::FatalBackendError
+ expect { worker.work_off }.to raise_exception Delayed::FatalBackendError
110
end
111
112
it 'allows the backend to attempt recovery from reservation errors' do
0 commit comments