From 23ccec3ebcde8bfede1391d9578b90741d8ad67c Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Tue, 5 May 2026 18:11:01 +0700 Subject: [PATCH] test(whatsapp): update facebook_api_client spec for calls subscription MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirrors the subscribed_fields change in 567631b — the webmock body matcher needs `calls` so the override-failure stub actually fires. --- spec/services/whatsapp/facebook_api_client_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/services/whatsapp/facebook_api_client_spec.rb b/spec/services/whatsapp/facebook_api_client_spec.rb index 74fb2f6e2..a33999bee 100644 --- a/spec/services/whatsapp/facebook_api_client_spec.rb +++ b/spec/services/whatsapp/facebook_api_client_spec.rb @@ -177,7 +177,7 @@ describe Whatsapp::FacebookApiClient do .with( headers: { 'Authorization' => "Bearer #{access_token}", 'Content-Type' => 'application/json' }, body: { override_callback_uri: callback_url, verify_token: verify_token, - subscribed_fields: %w[messages smb_message_echoes] }.to_json + subscribed_fields: %w[messages smb_message_echoes calls] }.to_json ) .to_return( status: 200, @@ -224,7 +224,7 @@ describe Whatsapp::FacebookApiClient do .with( headers: { 'Authorization' => "Bearer #{access_token}", 'Content-Type' => 'application/json' }, body: { override_callback_uri: callback_url, verify_token: verify_token, - subscribed_fields: %w[messages smb_message_echoes] }.to_json + subscribed_fields: %w[messages smb_message_echoes calls] }.to_json ) .to_return(status: 400, body: { error: 'Webhook callback override failed' }.to_json) end