diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-19 12:44:40 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-19 12:44:40 -0700 |
commit | 86df55e783fb0d04e45bba33c3e37942538dfca8 (patch) | |
tree | 871c8e6734e82a1d2d6ce9122c5870b80d9f9cfc | |
parent | 2268859dafadebc054087751c4349225979550f1 (diff) | |
parent | 048866aa14b34781f4472d02c5974cce0a7f4e5f (diff) | |
download | rails-86df55e783fb0d04e45bba33c3e37942538dfca8.tar.gz rails-86df55e783fb0d04e45bba33c3e37942538dfca8.tar.bz2 rails-86df55e783fb0d04e45bba33c3e37942538dfca8.zip |
Merge pull request #7996 from yahonda/revert_7994
Revert "truncate debug.log on each test run"
I'm reverting this since we may want to see SQL results of subsequent tests run, to, per example, copare them.
I didn't realized this first time but @yahonda pointed me out.
-rw-r--r-- | activerecord/test/support/connection.rb | 3 |
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' |