diff options
Diffstat (limited to 'railties/lib/tasks/misc.rake')
-rw-r--r-- | railties/lib/tasks/misc.rake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/railties/lib/tasks/misc.rake b/railties/lib/tasks/misc.rake new file mode 100644 index 0000000000..713f622547 --- /dev/null +++ b/railties/lib/tasks/misc.rake @@ -0,0 +1,15 @@ +desc "Run all the tests on a fresh test database" +task :default => [ :test_units, :test_functional ] + +task :environment do + require(File.join(RAILS_ROOT, 'config', 'environment')) +end + + +desc "Clears all *.log files in log/" +task :clear_logs do + FileList["log/*.log"].each do |log_file| + f = File.open(log_file, "w") + f.close + end +end |