aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-19 13:19:28 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-19 13:19:28 -0700
commit1b26c66ce470ce68674bbdce738c6f68467cff7d (patch)
tree0ec78c0fffc0d2ad21d05f2862f43046fc444630 /activesupport
parent38f0161aabb302550e1522cb62d19e54d448be9b (diff)
downloadrails-1b26c66ce470ce68674bbdce738c6f68467cff7d.tar.gz
rails-1b26c66ce470ce68674bbdce738c6f68467cff7d.tar.bz2
rails-1b26c66ce470ce68674bbdce738c6f68467cff7d.zip
mocking out debing? call in the MockLogger
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/log_subscriber/test_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/log_subscriber/test_helper.rb b/activesupport/lib/active_support/log_subscriber/test_helper.rb
index a3fb92778b..0f5fc3554b 100644
--- a/activesupport/lib/active_support/log_subscriber/test_helper.rb
+++ b/activesupport/lib/active_support/log_subscriber/test_helper.rb
@@ -48,9 +48,12 @@ module ActiveSupport
class MockLogger
attr_reader :flush_count
+ attr_accessor :debugging
+ alias :debug? :debugging
def initialize
@flush_count = 0
+ @debugging = false
@logged = Hash.new { |h,k| h[k] = [] }
end