diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-15 18:19:51 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-15 18:19:51 +0000 |
commit | 2aac6d90fe41ff5165fc4693baca9d668d79d0d8 (patch) | |
tree | 76525bf492cc42bf9a9bfdcb63fcc879ceea7aba /railties/lib | |
parent | bb92382424e64c35b484fa4680c235f14af7b7eb (diff) | |
download | rails-2aac6d90fe41ff5165fc4693baca9d668d79d0d8.tar.gz rails-2aac6d90fe41ff5165fc4693baca9d668d79d0d8.tar.bz2 rails-2aac6d90fe41ff5165fc4693baca9d668d79d0d8.zip |
Flipped code-to-test ratio around to be more readable #468 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/code_statistics.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/code_statistics.rb b/railties/lib/code_statistics.rb index 825772fcf1..efe8fc2454 100644 --- a/railties/lib/code_statistics.rb +++ b/railties/lib/code_statistics.rb @@ -98,7 +98,7 @@ class CodeStatistics code = calculate_code tests = calculate_tests - puts " Code LOC: #{code} Test LOC: #{tests} Code to Test Ratio: #{sprintf("%.1f", code/tests.to_f)}:1" + puts " Code LOC: #{code} Test LOC: #{tests} Code to Test Ratio: 1:#{sprintf("%.1f", tests.to_f/code)}" puts "" end end |