From ce148e0197e2b01e5087b5ebe9d630f413043616 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 12 Sep 2018 16:47:22 +0200 Subject: [PATCH] Fix failing spec due to wrong attribute --- spec/models/variant_override_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/variant_override_spec.rb b/spec/models/variant_override_spec.rb index 8275e82013..0a07fdd1af 100644 --- a/spec/models/variant_override_spec.rb +++ b/spec/models/variant_override_spec.rb @@ -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