change tests to use assert_select

This commit is contained in:
Philipp Rothmann 2023-07-13 16:03:45 +02:00 committed by Philipp Rothmann
parent 7f23b4784c
commit e80ec9c1ce
3 changed files with 14 additions and 7 deletions

View file

@ -14,7 +14,7 @@ class Finance::OrdergroupsController < Finance::BaseController
@ordergroups = @ordergroups.page(params[:page]).per(@per_page)
@total_balances = FinancialTransactionClass.sorted.each_with_object({}) do |c, tmp|
tmp[c.id] = c.financial_transactions.reduce(0) { | sum, t | sum + t.amount }
tmp[c.id] = c.financial_transactions.reduce(0) { |sum, t| sum + t.amount }
end
end
end