1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "truncate debug.log on each test run"

This reverts commit 98043c689f.

Because if every time `debug.log` is truncated,
developers have no way to see the previous ActiveRecord unit test results.
`debug.log` file can be easily reduced
by executing `$ touch /dev/null > debug.log` periodically.
This commit is contained in:
Yasuo Honda 2012-10-20 04:30:07 +09:00
parent 2268859daf
commit 048866aa14

View file

@ -13,8 +13,7 @@ module ARTest
def self.connect
puts "Using #{connection_name}"
file = File.open('debug.log', 'w')
ActiveRecord::Model.logger = ActiveSupport::Logger.new(file)
ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log")
ActiveRecord::Model.configurations = connection_config
ActiveRecord::Model.establish_connection 'arunit'
ARUnit2Model.establish_connection 'arunit2'