mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Patching a test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user