Skip to content

Commit 6f98614

Browse files
Calculate mailbox and channel test files as Test LOC stats
If they are not included in this "test types" list, they're counted towards app code lines, not test lines.
1 parent 7355ff3 commit 6f98614

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

railties/lib/rails/code_statistics.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class CodeStatistics #:nodoc:
88
"Helper tests",
99
"Model tests",
1010
"Mailer tests",
11+
"Mailbox tests",
12+
"Channel tests",
1113
"Job tests",
1214
"Integration tests",
1315
"System tests"]

railties/test/application/rake_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Hello
141141
end
142142

143143
def test_code_statistics_sanity
144-
assert_match "Code LOC: 32 Test LOC: 0 Code to Test Ratio: 1:0.0",
144+
assert_match "Code LOC: 29 Test LOC: 3 Code to Test Ratio: 1:0.1",
145145
rails("stats")
146146
end
147147

0 commit comments

Comments
 (0)