diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-22 13:08:26 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-22 13:08:26 +0000 |
commit | ebf2b12b07641cbdf07218d2661a721ebab6092f (patch) | |
tree | dd48278c02c6f7761254a3ea20265a630f9c78f8 /railties/fresh_rakefile | |
parent | dcc486805e5d79bd10fd5dfe302302522d250e86 (diff) | |
download | rails-ebf2b12b07641cbdf07218d2661a721ebab6092f.tar.gz rails-ebf2b12b07641cbdf07218d2661a721ebab6092f.tar.bz2 rails-ebf2b12b07641cbdf07218d2661a721ebab6092f.zip |
Fixed "rake stats" to work with sub-directories in models and controllers and to report the code to test ration [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/fresh_rakefile')
-rwxr-xr-x | railties/fresh_rakefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/fresh_rakefile b/railties/fresh_rakefile index e9f3afd7ae..437c999522 100755 --- a/railties/fresh_rakefile +++ b/railties/fresh_rakefile @@ -63,11 +63,11 @@ Rake::RDocTask.new("apidoc") { |rdoc| desc "Report code statistics (KLOCs, etc) from the application" task :stats do CodeStatistics.new( - ["Controllers", "app/controllers"], ["Helpers", "app/helpers"], + ["Controllers", "app/controllers"], + ["Functionals", "test/functional"], ["Models", "app/models"], - ["Units", "test/unit"], - ["Functionals", "test/functional"] + ["Units", "test/unit"] ).to_s end @@ -103,4 +103,4 @@ task :purge_test_database do `dropdb -U #{ActiveRecord::Base.configurations["test"]["username"]} #{ActiveRecord::Base.configurations["test"]["database"]}` `createdb -U #{ActiveRecord::Base.configurations["test"]["username"]} #{ActiveRecord::Base.configurations["test"]["database"]}` end -end
\ No newline at end of file +end |