feat: Handle notification.deleted action cable event (#8501)

This commit is contained in:
Muhsin Keloth
2023-12-06 16:49:00 +05:30
committed by GitHub
parent 6b0d1d77d3
commit bf49a17efa
8 changed files with 51 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ RSpec.describe AgentNotifications::ConversationNotificationsMailer do
end
describe 'conversation_creation' do
let(:mail) { described_class.with(account: account).conversation_creation(conversation, agent).deliver_now }
let(:mail) { described_class.with(account: account).conversation_creation(conversation, agent, nil).deliver_now }
it 'renders the subject' do
expect(mail.subject).to eq("#{agent.available_name}, A new conversation [ID - #{conversation
@@ -27,7 +27,7 @@ RSpec.describe AgentNotifications::ConversationNotificationsMailer do
end
describe 'conversation_assignment' do
let(:mail) { described_class.with(account: account).conversation_assignment(conversation, agent).deliver_now }
let(:mail) { described_class.with(account: account).conversation_assignment(conversation, agent, nil).deliver_now }
it 'renders the subject' do
expect(mail.subject).to eq("#{agent.available_name}, A new conversation [ID - #{conversation.display_id}] has been assigned to you.")