diff --git a/spec/requests/checkout/stripe_connect_spec.rb b/spec/requests/checkout/stripe_connect_spec.rb index 203409d1be..63eea0e5c8 100644 --- a/spec/requests/checkout/stripe_connect_spec.rb +++ b/spec/requests/checkout/stripe_connect_spec.rb @@ -104,7 +104,7 @@ describe "checking out an order with a Stripe Connect payment method", type: :re it "should process the payment without storing card details" do put update_checkout_path, params - expect(json_response["path"]).to eq spree_order_path(order) + expect(json_response["path"]).to eq order_path(order) expect(order.payments.completed.count).to be 1 card = order.payments.completed.first.source @@ -161,7 +161,7 @@ describe "checking out an order with a Stripe Connect payment method", type: :re it "should process the payment, and stores the card/customer details" do put update_checkout_path, params - expect(json_response["path"]).to eq spree_order_path(order) + expect(json_response["path"]).to eq order_path(order) expect(order.payments.completed.count).to be 1 card = order.payments.completed.first.source @@ -263,7 +263,7 @@ describe "checking out an order with a Stripe Connect payment method", type: :re it "should process the payment, and keep the profile ids and other card details" do put update_checkout_path, params - expect(json_response["path"]).to eq spree_order_path(order) + expect(json_response["path"]).to eq order_path(order) expect(order.payments.completed.count).to be 1 card = order.payments.completed.first.source