Last active
September 24, 2021 16:46
-
-
Save pachun/f3d4733844dbd3abbf0bc0bb7df4b61f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plaid_client_double = instance_double(Plaid::Client) | |
plaid_transactions_double = instance_double(Plaid::Transactions) | |
ENV["PLAID_ENVIRONMENT"] = "plaid_environment" | |
ENV["PLAID_CLIENT_ID"] = "plaid_client_id" | |
ENV["PLAID_SECRET"] = "plaid_secret" | |
ENV["PLAID_CLIENT_NAME"] = "plaid_client_name" | |
allow(Plaid::Client).to receive(:new).with( | |
env: "plaid_environment", | |
client_id: "plaid_client_id", | |
secret: "plaid_secret", | |
).and_return(plaid_client_double) | |
allow(plaid_client_double).to receive(:transactions) | |
.and_return(plaid_transactions_double) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment