Treat investment contributions as transfers in budgets and reports

Agent-Logs-Url: https://github.com/we-promise/sure/sessions/81bb8eeb-1c0b-4a7f-b939-187061c41f22

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-29 10:08:51 +00:00
parent 6554cbd44c
commit b1ec33da01
9 changed files with 113 additions and 33 deletions

View File

@@ -43,6 +43,21 @@ class PagesControllerTest < ActionDispatch::IntegrationTest
assert_select "[data-controller='sankey-chart']"
end
test "dashboard outflows includes investment contributions category" do
ensure_investment_contributions_category(@family)
create_transaction(
account: accounts(:depository),
amount: 300,
kind: "investment_contribution",
category: @family.investment_contributions_category
)
get root_path
assert_response :ok
assert_select "#outflows-donut-section", text: /#{Regexp.escape(Category.investment_contributions_name)}/
end
test "changelog" do
VCR.use_cassette("git_repository_provider/fetch_latest_release_notes") do
get changelog_path