From 6bb709e85e81a0889c58ada459c00ab08a526e24 Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Wed, 3 Sep 2025 04:55:29 +0500 Subject: [PATCH] update test description to reflect patching of redirect_auth_url in cvv_result --- spec/lib/stripe/authorize_response_patcher_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/stripe/authorize_response_patcher_spec.rb b/spec/lib/stripe/authorize_response_patcher_spec.rb index 12bf6e4367..56aac948f3 100644 --- a/spec/lib/stripe/authorize_response_patcher_spec.rb +++ b/spec/lib/stripe/authorize_response_patcher_spec.rb @@ -26,9 +26,9 @@ RSpec.describe Stripe::AuthorizeResponsePatcher do } } - it "patches response.cvv_result.message with the url in the response" do + it "patches response.cvv_result.redirect_auth_url with the url in the response" do new_response = patcher.call! - expect(new_response.cvv_result['message']).to eq "https://www.stripe.com/authorize" + expect(new_response.cvv_result['redirect_auth_url']).to eq "https://www.stripe.com/authorize" end context "with invalid url containing 'stripe.com'" do @@ -42,7 +42,7 @@ RSpec.describe Stripe::AuthorizeResponsePatcher do } } - it "patches response.cvv_result.message with nil" do + it "patches response.cvv_result.redirect_auth_url with nil" do new_response = patcher.call! expect(new_response.cvv_result['redirect_auth_url']).to eq nil end