Add Channel tests to `rails stats`

Rails generates `test/channels`(#34933) and
even allows `rails test:channels` (#34947).
`rails stats` has been providing info about `app/channels`,
it makes sense to add `test/channels` as well.

(I've changed test because we generate `test/channels` with some code)
This commit is contained in:
bogdanvlviv 2019-01-21 09:39:30 +00:00
parent 9f0953d320
commit 7ec67c1d31
No known key found for this signature in database
GPG Key ID: E4ACD76A6DB6DFDD
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ STATS_DIRECTORIES = [
%w(Model\ tests test/models),
%w(Mailer\ tests test/mailers),
%w(Mailbox\ tests test/mailboxes),
%w(Channel\ tests test/channels),
%w(Job\ tests test/jobs),
%w(Integration\ tests test/integration),
%w(System\ tests test/system),

View File

@ -118,7 +118,7 @@ module ApplicationTests
end
def test_code_statistics_sanity
assert_match "Code LOC: 29 Test LOC: 0 Code to Test Ratio: 1:0.0",
assert_match "Code LOC: 32 Test LOC: 0 Code to Test Ratio: 1:0.0",
rails("stats")
end