mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
Merge pull request #11537 from filipefurtad0/fix_flaky_orders_cycle_supplier_totals_report_spec.rb
Renames product so it always appears first on the report results
This commit is contained in:
@@ -67,7 +67,8 @@ describe Reporting::Reports::OrdersAndFulfillment::OrderCycleSupplierTotals do
|
||||
|
||||
it "is summarised" do
|
||||
expect(report).to receive(:display_summary_row?).and_return(true)
|
||||
|
||||
# assures product appears first on report table
|
||||
variant.product.update!(name: "Alpha-Product #000")
|
||||
variant.product.update!(variant_unit: "weight")
|
||||
variant.update!(unit_value: 200) # grams
|
||||
item.update!(final_weight_volume: nil) # reset unit information
|
||||
|
||||
Reference in New Issue
Block a user