mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Fix models/variant_override_spec by setting mandatory on_demand true when count_on_hand is nil
This commit is contained in:
@@ -135,7 +135,7 @@ describe VariantOverride do
|
||||
end
|
||||
|
||||
describe "with nil count on hand" do
|
||||
let(:variant_override) { create(:variant_override, variant: variant, hub: hub, count_on_hand: nil) }
|
||||
let(:variant_override) { create(:variant_override, variant: variant, hub: hub, count_on_hand: nil, on_demand: true) }
|
||||
|
||||
describe "stock_overridden?" do
|
||||
it "returns false" do
|
||||
|
||||
Reference in New Issue
Block a user