From 048866aa14b34781f4472d02c5974cce0a7f4e5f Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sat, 20 Oct 2012 04:30:07 +0900 Subject: Revert "truncate debug.log on each test run" This reverts commit 98043c689f945cabffc043f4bdc80ab2a7edc763. 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. --- activerecord/test/support/connection.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activerecord/test/support/connection.rb') diff --git a/activerecord/test/support/connection.rb b/activerecord/test/support/connection.rb index 2d288542be..92736e0ca9 100644 --- a/activerecord/test/support/connection.rb +++ b/activerecord/test/support/connection.rb @@ -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' -- cgit v1.2.3