1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 07:39:39 +02:00

Implement auto family syncs on login (#1021)

This commit is contained in:
Zach Gollwitzer 2024-07-25 12:51:50 -04:00 committed by GitHub
parent c8590d53ba
commit ef4be7948a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 59 additions and 9 deletions

View file

@ -25,6 +25,10 @@ class AccountTest < ActiveSupport::TestCase
@account.sync start_date: start_date
end
test "needs sync if account has not synced today" do
assert @account.needs_sync?
end
test "groups accounts by type" do
result = @family.accounts.by_group(period: Period.all)
assets = result[:assets]