From cb179c794bdc0ab4db4bfb8af9640375a69626cd Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 21 Feb 2021 10:26:26 +0000 Subject: [PATCH] Update Paypal spec --- spec/requests/checkout/paypal_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/requests/checkout/paypal_spec.rb b/spec/requests/checkout/paypal_spec.rb index a6436d4347..d0017db605 100644 --- a/spec/requests/checkout/paypal_spec.rb +++ b/spec/requests/checkout/paypal_spec.rb @@ -52,8 +52,8 @@ describe "checking out an order with a paypal express payment method", type: :re # Sanity check to condition of the order before we confirm the payment expect(order.payments.count).to eq 1 expect(order.payments.first.state).to eq "checkout" - expect(order.adjustments.payment_fee.count).to eq 1 - expect(order.adjustments.payment_fee.first.amount).to eq 1.5 + expect(order.all_adjustments.payment_fee.count).to eq 1 + expect(order.all_adjustments.payment_fee.first.amount).to eq 1.5 get spree.confirm_paypal_path, params @@ -64,8 +64,8 @@ describe "checking out an order with a paypal express payment method", type: :re # We have only one payment, and one transaction fee expect(order.payments.count).to eq 1 expect(order.payments.first.state).to eq "completed" - expect(order.adjustments.payment_fee.count).to eq 1 - expect(order.adjustments.payment_fee.first.amount).to eq 1.5 + expect(order.all_adjustments.payment_fee.count).to eq 1 + expect(order.all_adjustments.payment_fee.first.amount).to eq 1.5 end end end