Fixed confirmation email flaky tests (#534) (#735)

This commit is contained in:
Sony Mathew
2020-04-17 15:48:23 +05:30
committed by GitHub
parent c2167fcaaf
commit 2aa92d46fc

View File

@@ -28,7 +28,7 @@ RSpec.describe 'Confirmation Instructions', type: :mailer do
it 'refers to the inviter and their account' do
expect(mail.body).to match(
"#{inviter_val.name}, with #{inviter_val.account.name}, has invited you to try out Chatwoot!"
"#{CGI.escapeHTML(inviter_val.name)}, with #{CGI.escapeHTML(inviter_val.account.name)}, has invited you to try out Chatwoot!"
)
end
end