From 2aac6d90fe41ff5165fc4693baca9d668d79d0d8 Mon Sep 17 00:00:00 2001
From: David Heinemeier Hansson <david@loudthinking.com>
Date: Sat, 15 Jan 2005 18:19:51 +0000
Subject: 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
---
 railties/lib/code_statistics.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'railties/lib')

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
-- 
cgit v1.2.3