diff options
-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' |