Update minimum stripe-mock version to 0.94.0 (#935)

The params for AccountLink changed in `v0.93.0`, which will cause the
test suite to fail unless `stripe-mock` is pinned to an earlier version.

Fixes #934
This commit is contained in:
Joel Taylor 2020-07-31 16:44:01 -07:00 committed by GitHub
parent 9cf59214f3
commit f240405810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ sudo: false
env:
global:
# If changing this number, please also change it in `test/test_helper.rb`.
- STRIPE_MOCK_VERSION=0.90.0
- STRIPE_MOCK_VERSION=0.94.0
cache:
directories:

View File

@ -7,9 +7,9 @@ module Stripe
should "be creatable" do
link = Stripe::AccountLink.create(
account: "acct_123",
failure_url: "https://stripe.com/failure",
success_url: "https://stripe.com/success",
type: "custom_account_verification"
refresh_url: "https://stripe.com/refresh",
return_url: "https://stripe.com/return",
type: "account_onboarding"
)
assert_requested :post, "#{Stripe.api_base}/v1/account_links"
assert link.is_a?(Stripe::AccountLink)

View File

@ -16,7 +16,7 @@ require ::File.expand_path("test_data", __dir__)
require ::File.expand_path("stripe_mock", __dir__)
# If changing this number, please also change it in `.travis.yml`.
MOCK_MINIMUM_VERSION = "0.90.0"
MOCK_MINIMUM_VERSION = "0.94.0"
MOCK_PORT = Stripe::StripeMock.start
# Disable all real network connections except those that are outgoing to