chore: Sentry Issue fixes (#4618)

Address the following sentry issues

fixes: #4616, #4617
This commit is contained in:
Sojan Jose
2022-05-05 00:31:11 +05:30
committed by GitHub
parent b3c8c83830
commit c9a8796a36
3 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe InboxMember do
include ActiveJob::TestHelper
describe '#DestroyAssociationAsyncJob' do
let(:inbox_member) { create(:inbox_member) }
# ref: https://github.com/chatwoot/chatwoot/issues/4616
context 'when parent inbox is destroyed' do
it 'enques and processes DestroyAssociationAsyncJob' do
perform_enqueued_jobs do
inbox_member.inbox.destroy!
end
end
end
end
end