Fix broken spec

This commit is contained in:
Rohan Mitchell
2015-11-10 11:49:31 +11:00
parent a86cc96452
commit b6f3e6eca6

View File

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