aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-05-17 11:55:04 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-05-17 13:28:33 -0300
commita8f568e1ec4ce7c2346e98174466a616dc0cc3f3 (patch)
tree1992e7ad0d2c473e001dd737fa4bcefaa4f375ff /activesupport
parent66d0be64b8e54d686c7dbbebb635bd5d156889a0 (diff)
downloadrails-a8f568e1ec4ce7c2346e98174466a616dc0cc3f3.tar.gz
rails-a8f568e1ec4ce7c2346e98174466a616dc0cc3f3.tar.bz2
rails-a8f568e1ec4ce7c2346e98174466a616dc0cc3f3.zip
Make MockLogger work with blocks.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/log_subscriber/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/log_subscriber/test_helper.rb b/activesupport/lib/active_support/log_subscriber/test_helper.rb
index 9d01dc85c0..b65ea6208c 100644
--- a/activesupport/lib/active_support/log_subscriber/test_helper.rb
+++ b/activesupport/lib/active_support/log_subscriber/test_helper.rb
@@ -61,7 +61,7 @@ module ActiveSupport
@logged = Hash.new { |h,k| h[k] = [] }
end
- def method_missing(level, message)
+ def method_missing(level, message = nil)
if block_given?
@logged[level] << yield
else