Fix spec setup

This commit is contained in:
Luis Ramos
2021-01-27 22:44:52 +00:00
parent 12dac82b8a
commit 7cea4138c2

View File

@@ -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!)