fix: Telegram model specs (#8207)

This commit is contained in:
Muhsin Keloth
2023-10-26 00:14:09 +05:30
committed by GitHub
parent 58f47eb02c
commit 54bc4c23df

View File

@@ -62,7 +62,7 @@ RSpec.describe Channel::Telegram do
)
telegram_channel.send_message_on_telegram(message)
expect(message.reload.status).to eq('failed')
expect(message.reload.external_error).to eq('403: Forbidden: bot was blocked by the user')
expect(message.reload.external_error).to eq('403, Forbidden: bot was blocked by the user')
end
end
@@ -106,7 +106,7 @@ RSpec.describe Channel::Telegram do
allow(telegram_channel).to receive(:attachments_request).and_return(telegram_attachment_response)
telegram_channel.send_message_on_telegram(message)
expect(message.reload.status).to eq('failed')
expect(message.reload.external_error).to eq('400: Bad Request: invalid file id')
expect(message.reload.external_error).to eq('400, Bad Request: invalid file id')
end
end