Skip to content

Commit

Permalink
Update minimum stripe-mock version to 0.94.0 (#935)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
joeltaylor committed Jul 31, 2020
1 parent 9cf5921 commit f240405
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions test/stripe/account_link_test.rb
Expand Up @@ -7,9 +7,9 @@ class AccountLinkTest < Test::Unit::TestCase
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)
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Expand Up @@ -16,7 +16,7 @@
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
Expand Down

0 comments on commit f240405

Please sign in to comment.