mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
updated implementation
This commit is contained in:
@@ -16,9 +16,9 @@ describe ExchangeProductsRenderer do
|
||||
end
|
||||
|
||||
it "loads products in order" do
|
||||
sorted_products_names = products.pluck(:name).sort
|
||||
sorted_products_names = products.map(&:name).sort
|
||||
|
||||
expect(products.pluck(:name)).to eq(sorted_products_names)
|
||||
expect(products.map(&:name)).to eq(sorted_products_names)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,9 +34,9 @@ describe ExchangeProductsRenderer do
|
||||
end
|
||||
|
||||
it "loads products in order" do
|
||||
sorted_products_names = products.pluck(:name).sort
|
||||
sorted_products_names = products.map(&:name).sort
|
||||
|
||||
expect(products.pluck(:name)).to eq(sorted_products_names)
|
||||
expect(products.map(&:name)).to eq(sorted_products_names)
|
||||
end
|
||||
|
||||
context "showing products from coordinator inventory only" do
|
||||
|
||||
Reference in New Issue
Block a user