lib/code_statistics.rb in rails-1.0.0 vs lib/code_statistics.rb in rails-1.1.0
- old
+ new
@@ -1,7 +1,7 @@
class CodeStatistics #:nodoc:
- TEST_TYPES = ['Units', 'Functionals', 'Unit tests', 'Functional tests']
+ TEST_TYPES = %w(Units Functionals Unit\ tests Functional\ tests Integration\ tests)
def initialize(*pairs)
@pairs = pairs
@statistics = calculate_statistics
@total = calculate_total if pairs.length > 1