From b236da3317929f3735616262fe2a258c75428ffc Mon Sep 17 00:00:00 2001 From: Ikraam Ghoor Date: Fri, 26 Mar 2021 10:59:20 +0200 Subject: fixup! Skip ActiveJob retrying for ProcessInstallmentJob --- spec/jobs/solidus_subscriptions/process_installment_job_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/jobs') diff --git a/spec/jobs/solidus_subscriptions/process_installment_job_spec.rb b/spec/jobs/solidus_subscriptions/process_installment_job_spec.rb index 6fe8ed2..c50b452 100644 --- a/spec/jobs/solidus_subscriptions/process_installment_job_spec.rb +++ b/spec/jobs/solidus_subscriptions/process_installment_job_spec.rb @@ -10,12 +10,12 @@ RSpec.describe SolidusSubscriptions::ProcessInstallmentJob do end context 'when handling #perform errors' do - it 'swallows error on #perfom error' do + it 'swallows error when a proc is not configured' do expect { described_class.perform_now(nil) }.not_to raise_error(StandardError) end - it 'runs proc on #perform error' do - stub_config(process_job_error_handler: proc { |e| raise e } ) + it 'runs proc when a proc is configured' do + stub_config(processing_error_handler: proc { |e| raise e } ) expect { described_class.perform_now(nil) }.to raise_error(StandardError) end -- cgit v1.2.3