mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Configure PlaidSandbox to use sandbox environment regardless of Rails config and set test environment variables for Plaid. Temporarily disable AutoSync functionality in tests.
This commit is contained in:
parent
870b543640
commit
a76cc2dff8
3 changed files with 10 additions and 1 deletions
|
@ -44,6 +44,9 @@ class Provider::PlaidSandbox < Provider::Plaid
|
|||
Rails.application.config.plaid
|
||||
)
|
||||
|
||||
# Force sandbox environment for PlaidSandbox regardless of Rails config
|
||||
api_client.config.server_index = Plaid::Configuration::Environment["sandbox"]
|
||||
|
||||
Plaid::PlaidApi.new(api_client)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue