The personal finance app for everyone (by everyone)
Ruby
Revert "Make `bin/rails test` pass in Dev Container" to avoid side-effects (#302)
Juan José Matae065c98396ef
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.jsonindex 26bb8daa85..f16e433cf8 100644--- a/.devcontainer/devcontainer.json+++ b/.devcontainer/devcontainer.json@@ -10,9 +10,7 @@"containerEnv": {"GIT_EDITOR": "code --wait","GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}",- "GITHUB_USER": "${localEnv:GITHUB_USER}",- "PLAID_CLIENT_ID": "foo",- "PLAID_SECRET": "bar"+ "GITHUB_USER": "${localEnv:GITHUB_USER}"},"remoteEnv": {"PATH": "/workspace/bin:${containerEnv:PATH}"diff --git a/test/models/provider/plaid_test.rb b/test/models/provider/plaid_test.rbindex 25fce87b6f..135552e782 100644--- a/test/models/provider/plaid_test.rb+++ b/test/models/provider/plaid_test.rb@@ -5,10 +5,21 @@ class Provider::PlaidTest < ActiveSupport::TestCase# Do not change, this is whitelisted in the Plaid Dashboard for local dev@redirect_url = "http://localhost:3000/accounts"+ with_env_overrides(+ "PLAID_CLIENT_ID" => "foo",+ "PLAID_SECRET" => "bar"+ ) do+ Provider::PlaidAdapter.reload_configuration+ end+# A specialization of Plaid client with sandbox-only extensions@plaid = Provider::PlaidSandbox.newend+ teardown do+ Provider::PlaidAdapter.reload_configuration+ end+test "gets link token" doVCR.use_cassette("plaid/link_token") dolink_token = @plaid.get_link_token(