12890: fix specs

This commit is contained in:
Ahmed Ejaz
2024-11-02 22:24:34 +05:00
parent 7cd8311dcb
commit 3b83200a14

View File

@@ -53,9 +53,17 @@ RSpec.describe AffiliateSalesQuery do
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 @@ RSpec.describe AffiliateSalesQuery do
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,
}
)