aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2012-10-20 04:30:07 +0900
committerYasuo Honda <yasuo.honda@gmail.com>2012-10-20 04:30:07 +0900
commit048866aa14b34781f4472d02c5974cce0a7f4e5f (patch)
tree871c8e6734e82a1d2d6ce9122c5870b80d9f9cfc /activerecord
parent2268859dafadebc054087751c4349225979550f1 (diff)
downloadrails-048866aa14b34781f4472d02c5974cce0a7f4e5f.tar.gz
rails-048866aa14b34781f4472d02c5974cce0a7f4e5f.tar.bz2
rails-048866aa14b34781f4472d02c5974cce0a7f4e5f.zip
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.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/support/connection.rb3
1 files changed, 1 insertions, 2 deletions
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'