From 8abfd7c3f3b255d9fa22b37b43d370c3a91a6945 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 21 Feb 2021 10:29:01 +0000 Subject: [PATCH] Update Checkout spec --- spec/features/consumer/shopping/checkout_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/consumer/shopping/checkout_spec.rb b/spec/features/consumer/shopping/checkout_spec.rb index d9a9a855b2..a2a03a5979 100644 --- a/spec/features/consumer/shopping/checkout_spec.rb +++ b/spec/features/consumer/shopping/checkout_spec.rb @@ -462,7 +462,7 @@ feature "As a consumer I want to check out my cart", js: true do # There are two orders - our order and our new cart o = Spree::Order.complete.first - expect(o.adjustments.payment_fee.first.amount).to eq 5.67 + expect(o.all_adjustments.payment_fee.first.amount).to eq 5.67 expect(o.payments.first.amount).to eq(10 + 1.23 + 5.67) # items + fees + transaction end end