mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
12890: fix specs
This commit is contained in:
@@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user