mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
added products variable
This commit is contained in:
@@ -16,6 +16,7 @@ describe ExchangeProductsRenderer do
|
||||
end
|
||||
|
||||
it "loads products in order" do
|
||||
products = renderer.exchange_products(true, exchange.sender)
|
||||
sorted_products_names = products.map(&:name).sort
|
||||
|
||||
expect(products.map(&:name)).to eq(sorted_products_names)
|
||||
@@ -34,6 +35,7 @@ describe ExchangeProductsRenderer do
|
||||
end
|
||||
|
||||
it "loads products in order" do
|
||||
products = renderer.exchange_products(false, exchange.receiver)
|
||||
sorted_products_names = products.map(&:name).sort
|
||||
|
||||
expect(products.map(&:name)).to eq(sorted_products_names)
|
||||
|
||||
Reference in New Issue
Block a user