mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Set variant.on_demand to false
This commit is contained in:
@@ -49,6 +49,7 @@ module OpenFoodNetwork
|
||||
end
|
||||
|
||||
it "doesn't return products not in stock" do
|
||||
variant.update_attribute(:on_demand, false)
|
||||
variant.update_attribute(:count_on_hand, 0)
|
||||
pr.products_json.should_not include product.name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user