diff options
author | Go MAEDA <maeda@farend.jp> | 2024-06-30 14:37:12 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-06-30 14:37:12 +0000 |
commit | 2b786a6f48e519b4f09e7804fc06fb531d01b9db (patch) | |
tree | 8cdf6150e10ac1d0f95cb56310c9a55805ff29c6 /test/functional | |
parent | 578c53a932b52ea4b3c6658d631730e8fa169400 (diff) | |
download | redmine-2b786a6f48e519b4f09e7804fc06fb531d01b9db.tar.gz redmine-2b786a6f48e519b4f09e7804fc06fb531d01b9db.zip |
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
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/issues_controller_test.rb | 16 | ||||
-rw-r--r-- | test/functional/timelog_controller_test.rb | 6 |
2 files changed, 13 insertions, 9 deletions
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 diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 5a63a8c61..cd26f1b13 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -727,12 +727,14 @@ class TimelogControllerTest < Redmine::ControllerTest def test_get_bulk_edit @request.session[:user_id] = 2 - get :bulk_edit, :params => {:ids => [1, 2]} + with_settings :timespan_format => 'minutes' do + get :bulk_edit, :params => {:ids => [1, 2]} + end assert_response :success assert_select 'ul#bulk-selection' do assert_select 'li', 2 - assert_select 'li a', :text => '03/23/2007 - eCookbook: 4.25 hours (John Smith)' + assert_select 'li a', :text => '03/23/2007 - eCookbook: 4:15 hours (John Smith)' end assert_select 'form#bulk_edit_form[action=?]', '/time_entries/bulk_update' do |