mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Split family and Plaid item syncs into multiple jobs (#1799)
* Split family and Plaid item syncs into multiple jobs * fix test expectations
This commit is contained in:
parent
75c8627577
commit
c9c5eb315a
3 changed files with 5 additions and 9 deletions
|
@ -16,11 +16,11 @@ class FamilyTest < ActiveSupport::TestCase
|
|||
manual_accounts_count = @syncable.accounts.manual.count
|
||||
items_count = @syncable.plaid_items.count
|
||||
|
||||
Account.any_instance.expects(:sync_data)
|
||||
Account.any_instance.expects(:sync_later)
|
||||
.with(start_date: nil)
|
||||
.times(manual_accounts_count)
|
||||
|
||||
PlaidItem.any_instance.expects(:sync_data)
|
||||
PlaidItem.any_instance.expects(:sync_later)
|
||||
.with(start_date: nil)
|
||||
.times(items_count)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue