Patching a test

This commit is contained in:
Will Marshall
2014-03-18 17:38:33 +11:00
parent 51b6ac3e68
commit 90159325bf

View File

@@ -39,7 +39,7 @@ describe Shop::CheckoutController do
it "doesn't copy the previous shipping address from a pickup order" do
old_order = create(:order, bill_address: create(:address), ship_address: create(:address))
old_order.shipping_method.should_receive(:require_ship_address).and_return(false)
old_order.shipping_method.stub_chain(:andand, :require_ship_address).and_return(false)
Spree::Order.stub_chain(:order, :where, :where, :limit, :detect).and_return(old_order)
controller.send(:find_last_used_addresses, "email").last.should == nil