public
Fork of edavis10/redmine
Description: A fork of Redmine with Texuna Technologies patches applied.
Homepage: http://www.redmine.org
Clone URL: git://github.com/artemv/redmine_tt.git
updated for test to pass
artemv (author)
Thu Sep 04 07:43:22 -0700 2008
commit  c5f25baf252685b7e5fa322ecc623b4024d10bc6
tree    9575b74d77131ce6ea2434eecc75e72dd05b194d
parent  2f53878ce1f51cd5c797eaa8a98e6ed327e13b96
...
158
159
160
161
 
162
163
164
165
166
167
 
168
169
170
...
158
159
160
 
161
162
163
164
165
166
 
167
168
169
170
0
@@ -158,13 +158,13 @@ class Version < ActiveRecord::Base
0
       metrics[:remaining] += remaining
0
       metrics[:total] += (remaining + spent)
0
       
0
-      categories_metrics[category][:count] ||= {:open => 0, :done => 0, :total => 0}
0
+      categories_metrics[category][:count] ||= {:undone => 0, :done => 0, :total => 0}
0
       metrics = categories_metrics[category][:count]
0
       metrics[:total] += 1
0
       if issue.done?
0
         metrics[:done] += 1 
0
       else
0
-        metrics[:open] += 1 
0
+        metrics[:undone] += 1 
0
       end
0
     end
0
     categories_metrics
...
20
21
22
23
24
25
26
 
 
 
 
27
28
29
...
20
21
22
 
 
 
 
23
24
25
26
27
28
29
0
@@ -20,10 +20,10 @@ require File.dirname(__FILE__) + '/../test_helper'
0
 class VersionTest < Test::Unit::TestCase
0
   fixtures :all
0
 
0
-  def verify_counts(count_metrics, open, closed)
0
-    assert_equal open + closed, count_metrics[:total]
0
-    assert_equal open, count_metrics[:open]
0
-    assert_equal closed, count_metrics[:closed]    
0
+  def verify_counts(count_metrics, undone, done)
0
+    assert_equal undone + done, count_metrics[:total]
0
+    assert_equal undone, count_metrics[:undone]
0
+    assert_equal done, count_metrics[:done]    
0
   end
0
   
0
   def test_get_grouped_metrics_count

Comments