Skip to content

Commit

Permalink
Remove checks for sentry logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tfink419 committed May 29, 2024
1 parent b3086a1 commit ccb9d8f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/lib/res/ch31_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@

context 'with an unsuccessful submission' do
it 'does not successfully send to RES' do
expect(service).to receive(:log_exception_to_sentry)
allow(service).to receive(:send_to_res).and_return(OpenStruct.new(body: { 'error' => 'Error' }))

expect { service.submit }.to raise_error(Ch31Error)
end

it 'handles nil claim' do
nil_claim_service = RES::Ch31Form.new(user:, claim: nil)
expect(nil_claim_service).to receive(:log_exception_to_sentry)

expect { nil_claim_service.submit }.to raise_error(Ch31NilClaimError)
end
Expand Down

0 comments on commit ccb9d8f

Please sign in to comment.