Merge pull request #2691 from coopdevs/fix-variant-override-spec

Fix failing spec due to wrong attribute
This commit is contained in:
Pau Pérez Fabregat
2018-09-13 12:21:35 +02:00
committed by GitHub

View File

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