mirror of
https://github.com/redmine/redmine.git
synced 2026-01-01 05:10:50 +01:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user