Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@dhh dhh authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  railties/CHANGELOG
  2. +1 −1  railties/lib/code_statistics.rb
View
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Flipped code-to-test ratio around to be more readable #468 [Scott Baron]
+
* Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]
* Fixed that auto reloading would some times not work or would reload the models twice #475 [Tobias Luetke]
View
2  railties/lib/code_statistics.rb
@@ -98,7 +98,7 @@ def print_code_test_stats
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
Please sign in to comment.
Something went wrong with that request. Please try again.