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