update test description to reflect patching of redirect_auth_url in cvv_result

This commit is contained in:
Ahmed Ejaz
2025-09-03 04:55:29 +05:00
parent b510736a8d
commit 6bb709e85e

View File

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