fix: Disable marking IMAP connection as invalid for Standard Errors (#4764)

This commit is contained in:
Pranav Raj S
2022-06-02 11:38:58 +05:30
committed by GitHub
parent c7c46463ae
commit 6b9f4d08ca
3 changed files with 20 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
require 'rails_helper'
describe ChatwootExceptionTracker do
it 'returns nil if no tracker is configured' do
expect(described_class.new('random').capture_exception).to eq(nil)
it 'use rails logger if no tracker is configured' do
expect(Rails.logger).to receive(:error).with('random')
described_class.new('random').capture_exception
end
context 'with sentry DSN' do