Spec moved to OpenFoodNetwork::LastUsedAddress

This commit is contained in:
Rohan Mitchell
2015-12-11 13:25:40 +11:00
parent 3f8d470d23
commit a3874d42af

View File

@@ -52,12 +52,6 @@ describe CheckoutController do
response.should be_success
end
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))
Spree::Order.stub_chain(:order, :where, :where, :limit, :detect).and_return(old_order)
controller.send(:find_last_used_addresses, "email").last.should == nil
end
describe "building the order" do
before do
controller.stub(:current_distributor).and_return(distributor)