提交 98043c68 编写于 作者: F Francesco Rodriguez

truncate debug.log on each test run

上级 18e979ee
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册