mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Initial pass at Plaid EU (#1555)
* Initial pass at Plaid EU * Add EU support to Plaid Items * Lint * Temp fix for rubocop isseus * Merge cleanup * Pass in region and get tests passing * Use absolute path for translation --------- Signed-off-by: Josh Pigford <josh@joshpigford.com>
This commit is contained in:
parent
41873de11d
commit
4bf72506d5
15 changed files with 81 additions and 21 deletions
|
@ -9,9 +9,7 @@ class PlaidItemTest < ActiveSupport::TestCase
|
|||
|
||||
test "removes plaid item when destroyed" do
|
||||
@plaid_provider = mock
|
||||
|
||||
PlaidItem.stubs(:plaid_provider).returns(@plaid_provider)
|
||||
|
||||
@plaid_item.stubs(:plaid_provider).returns(@plaid_provider)
|
||||
@plaid_provider.expects(:remove_item).with(@plaid_item.access_token).once
|
||||
|
||||
assert_difference "PlaidItem.count", -1 do
|
||||
|
@ -21,9 +19,7 @@ class PlaidItemTest < ActiveSupport::TestCase
|
|||
|
||||
test "if plaid item not found, silently continues with deletion" do
|
||||
@plaid_provider = mock
|
||||
|
||||
PlaidItem.stubs(:plaid_provider).returns(@plaid_provider)
|
||||
|
||||
@plaid_item.stubs(:plaid_provider).returns(@plaid_provider)
|
||||
@plaid_provider.expects(:remove_item).with(@plaid_item.access_token).raises(Plaid::ApiError.new("Item not found"))
|
||||
|
||||
assert_difference "PlaidItem.count", -1 do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue