updated implementation

This commit is contained in:
Yih Yang
2020-10-29 22:07:11 +08:00
parent e3d1f5256b
commit f7ee08855a

View File

@@ -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