chore: Add validation for processed content field (#7306)

* logging the messages id for message validation exception

* Update the processed_message_content validation over length

* codeclimate

* specs failing for contacts
This commit is contained in:
Tejaswini Chile
2023-06-14 18:28:42 +05:30
committed by GitHub
parent 6eb4fa41ff
commit 1ee6a8fe90
3 changed files with 7 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ RSpec.describe Account::ContactsExportJob do
last_contact = account.contacts.last
expect(csv_data.length).to eq(account.contacts.count)
expect([first_row['email'], last_row['email']]).to contain_exactly(first_contact.email, last_contact.email)
expect([first_row['phone_number'], last_row['phone_number']]).to contain_exactly(first_contact.phone_number, last_contact.phone_number)
end