mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-30 10:39:40 +02:00
Require upstream item removal to delete plaid item
This commit is contained in:
parent
43a403e431
commit
c701755b02
3 changed files with 2 additions and 11 deletions
|
@ -16,12 +16,4 @@ class PlaidItemTest < ActiveSupport::TestCase
|
|||
@plaid_item.destroy
|
||||
end
|
||||
end
|
||||
|
||||
test "if plaid item not found, silently continues with deletion" do
|
||||
@plaid_provider.expects(:remove_item).with(@plaid_item.access_token).raises(Plaid::ApiError.new("Item not found"))
|
||||
|
||||
assert_difference "PlaidItem.count", -1 do
|
||||
@plaid_item.destroy
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue