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
This commit is contained in:
Go MAEDA
2024-06-30 14:37:12 +00:00
parent 578c53a932
commit 2b786a6f48
4 changed files with 15 additions and 11 deletions

View File

@@ -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