Permalink
Browse files

yuck

  • Loading branch information...
1 parent a1f0bd5 commit b72b9cf16220ffee3f7a14029d248b7ca892f1e5 @mceachen committed Sep 9, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 spec/spec_helper.rb
View
@@ -14,7 +14,13 @@
require 'closure_tree'
-ActiveRecord::Base.logger = Logger.new(plugin_test_dir + "/debug.log")
+if ActiveRecord::VERSION::MAJOR < 4
+ log = Logger.new(plugin_test_dir + "/debug.log")
+ log.sev_threshold = Logger::DEBUG
+ log.datetime_format = "%Y-%m-%d %H:%M:%S"
+ log.formatter = Logger::Formatter.new
+ ActiveRecord::Base.logger = log
+end
require 'yaml'
require 'erb'

0 comments on commit b72b9cf

Please sign in to comment.