mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
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) <noreply@anthropic.com>
This commit is contained in:
@@ -56,6 +56,7 @@ RSpec.describe Payments::WebhookService do
|
||||
}
|
||||
},
|
||||
order: {
|
||||
number: order.number,
|
||||
total: order.total,
|
||||
currency: order.currency,
|
||||
line_items: line_items
|
||||
|
||||
Reference in New Issue
Block a user