mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
Implement auto family syncs on login (#1021)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user