Permalink
Browse files

Merge pull request #7994 from frodsan/truncate_debug_log

truncate debug.log on each test run
  • Loading branch information...
rafaelfranca committed Oct 19, 2012
2 parents 8384683 + 98043c6 commit 2268859dafadebc054087751c4349225979550f1
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/test/support/connection.rb
@@ -13,7 +13,8 @@ def self.connection_config
def self.connect
puts "Using #{connection_name}"
- ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log")
+ file = File.open('debug.log', 'w')
+ ActiveRecord::Model.logger = ActiveSupport::Logger.new(file)
ActiveRecord::Model.configurations = connection_config
ActiveRecord::Model.establish_connection 'arunit'
ARUnit2Model.establish_connection 'arunit2'

0 comments on commit 2268859

Please sign in to comment.