diff options
author | Go MAEDA <maeda@farend.jp> | 2020-04-15 14:15:24 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-04-15 14:15:24 +0000 |
commit | a9a3d71e63f2941c70b988b55bcf494235c2b7ed (patch) | |
tree | b240764f7bf550c98e8c62463da8a467f0164723 /test/functional | |
parent | 4048e6640eab04bcbc49ffe9ce2c2873363b0fa6 (diff) | |
download | redmine-a9a3d71e63f2941c70b988b55bcf494235c2b7ed.tar.gz redmine-a9a3d71e63f2941c70b988b55bcf494235c2b7ed.zip |
Test for r19702 (#33273).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19703 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/issues_controller_test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 21b43d7c9..6853abf1f 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -2007,6 +2007,22 @@ class IssuesControllerTest < Redmine::ControllerTest end end + def test_index_should_respect_timespan_format + with_settings :timespan_format => 'minutes' do + get( + :index, + :params => { + :set_filter => 1, + :c => %w(estimated_hours total_estimated_hours spent_hours total_spent_hours) + } + ) + assert_select 'table.issues tr#issue-1 td.estimated_hours', :text => '200:00' + assert_select 'table.issues tr#issue-1 td.total_estimated_hours', :text => '200:00' + assert_select 'table.issues tr#issue-1 td.spent_hours', :text => '154:15' + assert_select 'table.issues tr#issue-1 td.total_spent_hours', :text => '154:15' + end + end + def test_show_by_anonymous get(:show, :params => {:id => 1}) assert_response :success |