diff --git a/spec/controllers/base_controller_spec.rb b/spec/controllers/base_controller_spec.rb index 5b0de85bd7..d0b9e54d6d 100644 --- a/spec/controllers/base_controller_spec.rb +++ b/spec/controllers/base_controller_spec.rb @@ -101,7 +101,7 @@ describe BaseController, type: :controller do end it "redirects to home with message if order cycle is expired" do - expect(controller).to receive(:current_order_cycle).and_return(oc).twice + expect(controller).to receive(:current_order_cycle).and_return(oc) expect(controller).to receive(:current_order).and_return(order).twice expect(oc).to receive(:closed?).and_return(true) expect(order).to receive(:empty!)