Set variant.on_demand to false

This commit is contained in:
Hugo Daniel
2018-11-23 14:30:14 +01:00
parent 0237432ba4
commit f1dc52fe4e

View File

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