Update Paypal spec

This commit is contained in:
Matt-Yorkley
2021-02-21 10:26:26 +00:00
parent a0e6b64e98
commit cb179c794b

View File

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