mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Make DFC API docs deterministic
This commit is contained in:
@@ -20,6 +20,7 @@ RSpec.describe "AffiliateSalesData", swagger_doc: "dfc.yaml", rswag_autodoc: tru
|
||||
|
||||
before do
|
||||
order = create(:order_with_totals_and_distribution, :completed)
|
||||
order.variants.first.product.update!(name: "Tomato")
|
||||
ConnectedApps::AffiliateSalesData.new(
|
||||
enterprise: order.distributor
|
||||
).connect({})
|
||||
|
||||
@@ -99,7 +99,7 @@ paths:
|
||||
dfc-b:hasPostalCode: '20170'
|
||||
dfc-b:supplies:
|
||||
"@type": dfc-b:SuppliedProduct
|
||||
dfc-b:name: 'Product #3 - 3355'
|
||||
dfc-b:name: Tomato
|
||||
dfc-b:hasQuantity:
|
||||
"@type": dfc-b:QuantitativeValue
|
||||
dfc-b:hasUnit: dfc-m:Gram
|
||||
|
||||
Reference in New Issue
Block a user