From cc61329cc74a5b596bcd7bf764e2516192758421 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Sat, 2 Nov 2024 22:24:34 +0500 Subject: [PATCH] 12890: fix specs --- .../spec/services/affiliate_sales_query_spec.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/engines/dfc_provider/spec/services/affiliate_sales_query_spec.rb b/engines/dfc_provider/spec/services/affiliate_sales_query_spec.rb index 4ae4b919544..35261fac9f2 100644 --- a/engines/dfc_provider/spec/services/affiliate_sales_query_spec.rb +++ b/engines/dfc_provider/spec/services/affiliate_sales_query_spec.rb @@ -53,9 +53,17 @@ it "converts an array to a hash" do row = [ "Apples", - "item", "item", nil, nil, + "item", + "item", + nil, + nil, 15.50, - "3210", "3211", + "3210", + "city1", + "country1", + "3211", + "city2", + "country2", 3, ] expect(query.label_row(row)).to eq( @@ -67,7 +75,11 @@ unit_presentation: nil, price: 15.50, distributor_postcode: "3210", + distributor_city: "city1", + distributor_country: "country1", supplier_postcode: "3211", + supplier_city: "city2", + supplier_country: "country2", quantity_sold: 3, } )