From 2734476175cfccb114a09b204f8ba10a1e2d0318 Mon Sep 17 00:00:00 2001 From: Travis Tilley Date: Fri, 27 Aug 2010 17:08:18 -0400 Subject: [PATCH] fix tests with AR3, which will apparently attempt to log even when logger is nil --- spec/unit/active_record_persistence_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/unit/active_record_persistence_spec.rb b/spec/unit/active_record_persistence_spec.rb index cf7743d..7326fbe 100644 --- a/spec/unit/active_record_persistence_spec.rb +++ b/spec/unit/active_record_persistence_spec.rb @@ -1,6 +1,9 @@ begin require 'rubygems' require 'active_record' + require 'logger' + + ActiveRecord::Base.logger = Logger.new(STDERR) # A dummy class for mocking the activerecord connection class class Connection