Fix failing spec due to wrong attribute

This commit is contained in:
Pau Perez
2018-09-12 16:47:22 +02:00
parent e58f7269c3
commit ce148e0197

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