mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
update test description to reflect patching of redirect_auth_url in cvv_result
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user