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
This commit is contained in:
Go MAEDA
2019-01-22 23:34:57 +00:00
parent eda4b6514b
commit bb17ee5295
3 changed files with 22 additions and 4 deletions

View File

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