From b6f3e6eca665c76cffee98d4e6cf549b9a247b0a Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Tue, 10 Nov 2015 11:49:31 +1100 Subject: [PATCH] Fix broken spec --- 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 4fc3b57d8f..b32e87f7f9 100644 --- a/spec/models/spree/order_populator_spec.rb +++ b/spec/models/spree/order_populator_spec.rb @@ -71,6 +71,7 @@ module Spree params = {variants: {"1" => {quantity: 1, max_quantity: 2}}} order.stub(:with_lock).and_yield op.stub(:varies_from_cart) { true } + op.stub(:variants_removed) { [] } op.should_receive(:attempt_cart_add).with("1", 1, 2).and_return true op.populate(params, true) end