From bf47db17922f533da795ff0436c5a16fb16db6d4 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 29 Dec 2020 15:32:52 +0000 Subject: [PATCH] Fix missing route in Spree::OrdersController I'm not sure why this spec started failing. Fixes: ``` Spree::OrdersController viewing cart when an item is in the cart the page provides the right registration path Failure/Error: expect(subject.registration_path).to eq registration_path ActionController::UrlGenerationError: No route matches {:action=>"index", :controller=>"registration"} # ./spec/controllers/spree/orders_controller_spec.rb:140:in `block (5 levels) in ' ``` --- app/controllers/spree/orders_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/spree/orders_controller.rb b/app/controllers/spree/orders_controller.rb index 740f563bf5..616300c2b1 100644 --- a/app/controllers/spree/orders_controller.rb +++ b/app/controllers/spree/orders_controller.rb @@ -1,6 +1,8 @@ module Spree class OrdersController < Spree::StoreController include OrderCyclesHelper + include Rails.application.routes.url_helpers + layout 'darkswarm' ssl_required :show