From 263b5e280eef3093631379d57f66dacfffb12e30 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 13 Sep 2023 11:33:58 +0100 Subject: [PATCH] Renames product so it always appears first on the report results --- .../orders_cycle_supplier_totals_report_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/lib/reports/orders_and_fulfillment/orders_cycle_supplier_totals_report_spec.rb b/spec/lib/reports/orders_and_fulfillment/orders_cycle_supplier_totals_report_spec.rb index 8ff0cd6087..91f7d624e0 100644 --- a/spec/lib/reports/orders_and_fulfillment/orders_cycle_supplier_totals_report_spec.rb +++ b/spec/lib/reports/orders_and_fulfillment/orders_cycle_supplier_totals_report_spec.rb @@ -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