From 307cc313df24ec2e33498c12dda7f0dffcf834f1 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Tue, 13 Jan 2015 11:46:41 +1100 Subject: [PATCH] Stub scope_to_hub in spec that wasn't expecting it --- spec/models/spree/order_populator_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/models/spree/order_populator_spec.rb b/spec/models/spree/order_populator_spec.rb index bfe2e123f8..5602e46da5 100644 --- a/spec/models/spree/order_populator_spec.rb +++ b/spec/models/spree/order_populator_spec.rb @@ -48,6 +48,7 @@ module Spree describe "attempt_cart_add" do it "performs additional validations" do variant = double(:variant) + variant.stub(:scope_to_hub) quantity = 123 Spree::Variant.stub(:find).and_return(variant)