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