Skip to content

Commit

Permalink
Flipped code-to-test ratio around to be more readable rails#468 [Scot…
Browse files Browse the repository at this point in the history
…t Baron]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Jan 15, 2005
1 parent bb92382 commit 2aac6d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/code_statistics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2aac6d9

Please sign in to comment.