Skip to content

Commit

Permalink
Fix expectation after changing context of error
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 committed Nov 20, 2024
1 parent 4fd2072 commit 851df88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/requests/whats_app/three_sixty_dialog_webhook_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 851df88

Please sign in to comment.