diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-19 13:19:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-19 13:19:28 -0700 |
commit | 1b26c66ce470ce68674bbdce738c6f68467cff7d (patch) | |
tree | 0ec78c0fffc0d2ad21d05f2862f43046fc444630 /activesupport | |
parent | 38f0161aabb302550e1522cb62d19e54d448be9b (diff) | |
download | rails-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.rb | 3 |
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 |