From d3cca04703768c8d40a435f97a368c355279616e Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Sun, 13 Jun 2021 16:51:52 -0700 Subject: [PATCH] update spec --- spec/features/admin/payments_stripe_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/payments_stripe_spec.rb b/spec/features/admin/payments_stripe_spec.rb index b07b049f0e..2bae8fe114 100644 --- a/spec/features/admin/payments_stripe_spec.rb +++ b/spec/features/admin/payments_stripe_spec.rb @@ -73,7 +73,7 @@ feature ' redirect_url: "https://www.stripe.com/authorize" end - it "fails to add a payment due to card error" do + it "adds the payment and it is in the requires_authorization state" do login_as_admin_and_visit spree.new_admin_order_payment_path order fill_in "payment_amount", with: order.total.to_s @@ -81,7 +81,7 @@ feature ' click_button "Update" expect(page).to have_link "StripeSCA" - expect(page).to have_content "PENDING" + expect(page).to have_content "AUTHORIZATION REQUIRED" expect(OrderPaymentFinder.new(order.reload).last_payment.state).to eq "requires_authorization" end end