Add missing Spree route for Paypal

This commit is contained in:
Maikel Linke
2019-09-06 19:07:41 +10:00
parent a1f3e8205f
commit eb9f02f3bd
2 changed files with 3 additions and 2 deletions

View File

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

View File

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