aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-01-21 20:36:29 +0900
committerGitHub <noreply@github.com>2019-01-21 20:36:29 +0900
commitfeb97dfabd027a73a41ca8bd2ab7c3196ab76d3d (patch)
tree64547877bbf1af626bf88484086de808c1b1446b
parent98ebebde86c78391c102bb031ca56999b63c2de1 (diff)
parent7ec67c1d3194ca7529f865c3138a56ff6c085b8f (diff)
downloadrails-feb97dfabd027a73a41ca8bd2ab7c3196ab76d3d.tar.gz
rails-feb97dfabd027a73a41ca8bd2ab7c3196ab76d3d.tar.bz2
rails-feb97dfabd027a73a41ca8bd2ab7c3196ab76d3d.zip
Merge pull request #35005 from bogdanvlviv/add-chanel-tests-to-rails-stats
Add Channel tests to `rails stats`
-rw-r--r--railties/lib/rails/tasks/statistics.rake1
-rw-r--r--railties/test/application/rake_test.rb2
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