mirror of
https://github.com/we-promise/sure.git
synced 2026-04-25 15:04:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user