diff options
Diffstat (limited to 'spec/jobs')
-rw-r--r-- | spec/jobs/solidus_subscriptions/process_installment_job_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |