mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #2691 from coopdevs/fix-variant-override-spec
Fix failing spec due to wrong attribute
This commit is contained in:
@@ -59,7 +59,7 @@ describe VariantOverride do
|
||||
|
||||
describe "looking up count on hand" do
|
||||
it "returns the numeric stock level when present" do
|
||||
VariantOverride.create!(variant: variant, hub: hub, on_hand: 12)
|
||||
VariantOverride.create!(variant: variant, hub: hub, count_on_hand: 12)
|
||||
VariantOverride.count_on_hand_for(hub, variant).should == 12
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user