diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2019-01-21 09:39:30 +0000 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2019-01-21 10:45:08 +0000 |
commit | 7ec67c1d3194ca7529f865c3138a56ff6c085b8f (patch) | |
tree | 8005e78963dd2da2cad7e700874e0563b84a57ce | |
parent | 9f0953d320bbc06a77596a93b6fdbcbf315cb06a (diff) | |
download | rails-7ec67c1d3194ca7529f865c3138a56ff6c085b8f.tar.gz rails-7ec67c1d3194ca7529f865c3138a56ff6c085b8f.tar.bz2 rails-7ec67c1d3194ca7529f865c3138a56ff6c085b8f.zip |
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)
-rw-r--r-- | railties/lib/rails/tasks/statistics.rake | 1 | ||||
-rw-r--r-- | railties/test/application/rake_test.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/statistics.rake b/railties/lib/rails/tasks/statistics.rake index 007a30b6ae..5abba7d3b4 100644 --- a/railties/lib/rails/tasks/statistics.rake +++ b/railties/lib/rails/tasks/statistics.rake @@ -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), diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 830c36671c..44e3b0f66b 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -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 |