From 817e409a2b142acea41520a88d8e7ad7017668a3 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Thu, 13 Jul 2023 16:10:53 +0200 Subject: [PATCH] fix test --- spec/controllers/finance/ordergroups_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/finance/ordergroups_controller_spec.rb b/spec/controllers/finance/ordergroups_controller_spec.rb index 3750016d..73c1f3bb 100644 --- a/spec/controllers/finance/ordergroups_controller_spec.rb +++ b/spec/controllers/finance/ordergroups_controller_spec.rb @@ -49,8 +49,8 @@ describe Finance::OrdergroupsController do get_with_defaults :index expect(response).to have_http_status(:success) - assert_select "#total_balance#{fin_trans_type1.id}", number_to_currency(300) - assert_select "#total_balance#{fin_trans_type2.id}", number_to_currency(42.23) + assert_select "#total_balance#{fin_trans_type1.financial_transaction_class_id}", number_to_currency(300) + assert_select "#total_balance#{fin_trans_type2.financial_transaction_class_id}", number_to_currency(42.23) assert_select '#total_balance_sum', number_to_currency(342.23) end end