Skip to content

Commit e58e8bd

Browse files
committed
Merge pull request rails#8466 from gclag/stats-handle-new-test-locations
Make rake task for code statistics handle new test locations properly
2 parents bb8923d + 6e0eb92 commit e58e8bd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

railties/lib/rails/code_statistics.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
class CodeStatistics #:nodoc:
22

3-
TEST_TYPES = %w(Units Functionals Unit\ tests Functional\ tests Integration\ tests)
3+
TEST_TYPES = ['Controller tests',
4+
'Helper tests',
5+
'Model tests',
6+
'Mailer tests',
7+
'Integration tests',
8+
'Functional tests (old)',
9+
'Unit tests (old)']
410

511
def initialize(*pairs)
612
@pairs = pairs

0 commit comments

Comments
 (0)