summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorIkraam Ghoor <ikraamghoor@nebulab.it>2021-03-26 10:59:20 +0200
committerIkraam Ghoor <ikraamghoor@nebulab.it>2021-03-26 10:59:28 +0200
commitb236da3317929f3735616262fe2a258c75428ffc (patch)
tree3e27d28e0a79b24a36af50961c0a22bb70566c22 /spec
parent28e9291ecdf010a4f87ee1cb8d2856d766ad0f75 (diff)
fixup! Skip ActiveJob retrying for ProcessInstallmentJob
Diffstat (limited to 'spec')
-rw-r--r--spec/jobs/solidus_subscriptions/process_installment_job_spec.rb6
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