chore: Provider APIs for SMS Channel - Bandwidth (#3889)

fixes: #3888
This commit is contained in:
Sojan Jose
2022-02-03 15:22:13 -08:00
committed by GitHub
parent fba7f40bee
commit cf10f3d03b
40 changed files with 879 additions and 51 deletions

View File

@@ -0,0 +1,12 @@
require 'rails_helper'
RSpec.describe 'Webhooks::SmsController', type: :request do
describe 'POST /webhooks/sms/{:phone_number}' do
it 'call the sms events job with the params' do
allow(Webhooks::SmsEventsJob).to receive(:perform_later)
expect(Webhooks::SmsEventsJob).to receive(:perform_later)
post '/webhooks/sms/123221321', params: { content: 'hello' }
expect(response).to have_http_status(:success)
end
end
end