@@ -93,7 +93,7 class VersionTest < ActiveSupport::TestCase | |||||
93 | assert_progress_equal (100.0)/3, v.closed_percent |
|
93 | assert_progress_equal (100.0)/3, v.closed_percent | |
94 | end |
|
94 | end | |
95 |
|
95 | |||
96 |
def test_progress_should_consider_estimated_hours_to_weig |
|
96 | def test_progress_should_consider_estimated_hours_to_weight_issues | |
97 | project = Project.find(1) |
|
97 | project = Project.find(1) | |
98 | v = Version.create!(:project => project, :name => 'Progress') |
|
98 | v = Version.create!(:project => project, :name => 'Progress') | |
99 | add_issue(v, :estimated_hours => 10) |
|
99 | add_issue(v, :estimated_hours => 10) | |
@@ -104,7 +104,7 class VersionTest < ActiveSupport::TestCase | |||||
104 | assert_progress_equal 25.0/95.0*100, v.closed_percent |
|
104 | assert_progress_equal 25.0/95.0*100, v.closed_percent | |
105 | end |
|
105 | end | |
106 |
|
106 | |||
107 |
def test_progress_should_consider_average_estimated_hours_to_weig |
|
107 | def test_progress_should_consider_average_estimated_hours_to_weight_unestimated_issues | |
108 | project = Project.find(1) |
|
108 | project = Project.find(1) | |
109 | v = Version.create!(:project => project, :name => 'Progress') |
|
109 | v = Version.create!(:project => project, :name => 'Progress') | |
110 | add_issue(v, :done_ratio => 20) |
|
110 | add_issue(v, :done_ratio => 20) |
General Comments 0
You need to be logged in to leave comments.
Login now