chore: Fix spec

This commit is contained in:
iamsivin
2025-04-29 22:03:27 +05:30
parent a4a749e0d5
commit ab9d10488c
@@ -147,7 +147,15 @@ RSpec.describe ConversationReplyMailer do
end
it 'renders the body' do
expect(mail.decoded).to include message.content
body_content = if mail.multipart?
# Check either HTML part or text part for the content
mail.html_part&.body&.decoded || mail.text_part&.body&.decoded
else
# Fallback to single-part handling
mail.body.decoded
end
expect(body_content).to include message.content
end
it 'updates the source_id' do