mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +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
|
@ -9,8 +9,12 @@ require_relative "../config/environment"
|
|||
|
||||
ENV["RAILS_ENV"] ||= "test"
|
||||
|
||||
# Set Plaid to sandbox mode for tests
|
||||
ENV["PLAID_ENV"] = "sandbox"
|
||||
ENV["PLAID_CLIENT_ID"] ||= "test_client_id"
|
||||
ENV["PLAID_SECRET"] ||= "test_secret"
|
||||
|
||||
# Fixes Segfaults on M1 Macs when running tests in parallel (temporary workaround)
|
||||
# https://github.com/ged/ruby-pg/issues/538#issuecomment-1591629049
|
||||
ENV["PGGSSENCMODE"] = "disable"
|
||||
|
||||
require "rails/test_help"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue