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
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]