test/integration/queuing_test.rb in activejob-retry-0.4.1 vs test/integration/queuing_test.rb in activejob-retry-0.4.2
- old
+ new
@@ -43,11 +43,10 @@
wait_for_jobs_to_finish_for(5.seconds)
assert job_executed
end
test 'should call rescue_from only when retries have run out' do
- TestJob.rescue_from(RuntimeError) { write_to_rescue_file }
- TestJob.perform_later(@id, false, true)
+ TestJob.perform_later(@id, false, true, true)
wait_for_jobs_to_finish_for(2.seconds)
assert_not job_executed
refute rescue_executed