From 851df889fbb4ba6dbb4b5ac8099282bf1d1f4d64 Mon Sep 17 00:00:00 2001 From: Matthew Rider Date: Wed, 20 Nov 2024 10:29:20 +0100 Subject: [PATCH] Fix expectation after changing context of error --- spec/requests/whats_app/three_sixty_dialog_webhook_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/requests/whats_app/three_sixty_dialog_webhook_spec.rb b/spec/requests/whats_app/three_sixty_dialog_webhook_spec.rb index fc9b28b00..5d3e637fb 100644 --- a/spec/requests/whats_app/three_sixty_dialog_webhook_spec.rb +++ b/spec/requests/whats_app/three_sixty_dialog_webhook_spec.rb @@ -125,7 +125,8 @@ end it 'reports the error' do - expect(ErrorNotifier).to receive(:report).with(exception, context: { details: 'Message type is not currently supported' }) + context = { details: 'Message type is not currently supported', title: 'Unsupported message type' } + expect(ErrorNotifier).to receive(:report).with(exception, context: context) subject.call end