From aa3fa59a32358a7abbdf4616c843ffa7d1edcbda Mon Sep 17 00:00:00 2001 From: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Date: Thu, 19 Mar 2026 18:05:49 -0700 Subject: [PATCH] fix(spec): include order number in webhook_service_spec expected data The webhook_payload now includes :number in the order slice, but webhook_service_spec still expected the order hash without it. Since hash_including only matches at the top level, the nested order hash comparison was strict and failed. Co-Authored-By: Claude Opus 4.6 (1M context) --- spec/services/payments/webhook_service_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/services/payments/webhook_service_spec.rb b/spec/services/payments/webhook_service_spec.rb index cab2394c8e..3f65bea4ef 100644 --- a/spec/services/payments/webhook_service_spec.rb +++ b/spec/services/payments/webhook_service_spec.rb @@ -56,6 +56,7 @@ RSpec.describe Payments::WebhookService do } }, order: { + number: order.number, total: order.total, currency: order.currency, line_items: line_items