Stub scope_to_hub in spec that wasn't expecting it

This commit is contained in:
Rohan Mitchell
2015-01-13 11:46:41 +11:00
parent 0431e0048c
commit 307cc313df

View File

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