From eb9f02f3bd2678296cc7ea712903f432addf79b7 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 6 Sep 2019 19:07:41 +1000 Subject: [PATCH] Add missing Spree route for Paypal --- config/routes/spree.rb | 3 +++ spec/features/consumer/shopping/checkout_paypal_spec.rb | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/routes/spree.rb b/config/routes/spree.rb index 240ee39083..ed648e2792 100644 --- a/config/routes/spree.rb +++ b/config/routes/spree.rb @@ -117,6 +117,9 @@ Spree::Core::Engine.routes.prepend do resources :products + # Used by spree_paypal_express + get '/checkout/:state', :to => 'checkout#edit', :as => :checkout_state + get '/unauthorized', :to => 'home#unauthorized', :as => :unauthorized get '/content/cvv', :to => 'content#cvv', :as => :cvv get '/content/*path', :to => 'content#show', :as => :content diff --git a/spec/features/consumer/shopping/checkout_paypal_spec.rb b/spec/features/consumer/shopping/checkout_paypal_spec.rb index f7748aeca0..c32225dac7 100644 --- a/spec/features/consumer/shopping/checkout_paypal_spec.rb +++ b/spec/features/consumer/shopping/checkout_paypal_spec.rb @@ -43,8 +43,6 @@ feature "Checking out with Paypal", js: true do describe "as a guest" do it "fails with an error message" do - pending "The checkout_state_path is missing." - visit checkout_path complete_the_form