From bb17ee52951fbc65666fb2e2e2cc5a696eeeb2ef Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 22 Jan 2019 23:34:57 +0000 Subject: 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 --- test/functional/projects_controller_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/functional/projects_controller_test.rb') 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 => { -- cgit v1.2.3