mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
706a8a8f96
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
19 lines
474 B
Ruby
19 lines
474 B
Ruby
desc "Run all the tests on a fresh test database"
|
|
task :default do
|
|
Rake::Task[:test_units].invoke rescue got_error = true
|
|
Rake::Task[:test_functional].invoke rescue got_error = true
|
|
raise "Test failures" if got_error
|
|
end
|
|
|
|
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
|