From d5a625bdeb32089863dbd007f4d57f1a9ff1347d Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 3 Jun 2023 11:41:56 +0100 Subject: [PATCH] Fix Paypal spec --- spec/requests/checkout/paypal_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/requests/checkout/paypal_spec.rb b/spec/requests/checkout/paypal_spec.rb index 682a27e57f..33f4cbf27a 100644 --- a/spec/requests/checkout/paypal_spec.rb +++ b/spec/requests/checkout/paypal_spec.rb @@ -46,6 +46,7 @@ describe "checking out an order with a paypal express payment method", type: :re payment_method.calculator = calculator payment_method.save! order.payments.create!(payment_method_id: payment_method.id, amount: order.total) + order.next end it "destroys the old payment and processes the order" do