From 2b786a6f48e519b4f09e7804fc06fb531d01b9db Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 30 Jun 2024 14:37:12 +0000 Subject: Spent hours ignoring "Time Span Format" Setting on several pages (#40924). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22902 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'test/functional/issues_controller_test.rb') diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index fbdae4163..cfd6219ba 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -8272,14 +8272,16 @@ class IssuesControllerTest < Redmine::ControllerTest leaf = Issue.generate! TimeEntry.generate!(:issue => leaf) @request.session[:user_id] = 2 - delete( - :destroy, - :params => { - :ids => [parent.id, leaf.id] - } - ) + with_settings :timespan_format => 'minutes' do + delete( + :destroy, + :params => { + :ids => [parent.id, leaf.id] + } + ) + end assert_response :success - assert_select 'p', :text => /3\.00 hours were reported/ + assert_select 'p', :text => /3:00 hours were reported/ end def test_destroy_issues_and_destroy_time_entries -- cgit v1.2.3