From 7cea4138c2ea60c02763b224858a9dbb8a5b8373 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Wed, 27 Jan 2021 22:44:52 +0000 Subject: [PATCH] Fix spec setup --- spec/controllers/base_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!)