Skip to content
This repository
Browse code

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
  • Loading branch information...
commit 2aac6d90fe41ff5165fc4693baca9d668d79d0d8 1 parent bb92382
David Heinemeier Hansson authored
2  railties/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Flipped code-to-test ratio around to be more readable #468 [Scott Baron]
  4
+
3 5
 * Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]
4 6
 
5 7
 * Fixed that auto reloading would some times not work or would reload the models twice #475 [Tobias Luetke]
2  railties/lib/code_statistics.rb
@@ -98,7 +98,7 @@ def print_code_test_stats
98 98
       code  = calculate_code
99 99
       tests = calculate_tests
100 100
 
101  
-      puts "  Code LOC: #{code}     Test LOC: #{tests}     Code to Test Ratio: #{sprintf("%.1f", code/tests.to_f)}:1"
  101
+      puts "  Code LOC: #{code}     Test LOC: #{tests}     Code to Test Ratio: 1:#{sprintf("%.1f", tests.to_f/code)}"
102 102
       puts ""
103 103
     end
104 104
   end

0 notes on commit 2aac6d9

Please sign in to comment.
Something went wrong with that request. Please try again.