diff options
author | Go MAEDA <maeda@farend.jp> | 2019-01-22 23:34:57 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-01-22 23:34:57 +0000 |
commit | bb17ee52951fbc65666fb2e2e2cc5a696eeeb2ef (patch) | |
tree | 5accd7e21b443944b42ccf983e67376af77a37db /test | |
parent | eda4b6514b3ec1977720bc9d59d436b2d09b4c0f (diff) | |
download | redmine-bb17ee52951fbc65666fb2e2e2cc5a696eeeb2ef.tar.gz redmine-bb17ee52951fbc65666fb2e2e2cc5a696eeeb2ef.zip |
Show estimated time on the overview page as well as spent time (#30464).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17838 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/projects_controller_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index e5b5eaaf4..16f42ac4d 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -575,6 +575,18 @@ class ProjectsControllerTest < Redmine::ControllerTest assert_select 'table.issue-report td.total a', :text => %r{\A[1-9]\d*\z} end + def test_show_should_spent_and_estimated_time + @request.session[:user_id] = 1 + get :show, :params => { + :id => 'ecookbook' + } + + assert_select 'div.spent_time.box>ul' do + assert_select '>li:nth-child(1)', :text => 'Estimated time: 203.50 hours' + assert_select '>li:nth-child(2)', :text => 'Spent time: 162.90 hours' + end + end + def test_settings @request.session[:user_id] = 2 # manager get :settings, :params => { |