Permalink
Browse files

Make MockLogger work with blocks.

  • Loading branch information...
1 parent 66d0be6 commit a8f568e1ec4ce7c2346e98174466a616dc0cc3f3 @rafaelfranca rafaelfranca committed May 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/log_subscriber/test_helper.rb
@@ -61,7 +61,7 @@ def initialize(level = DEBUG)
@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

0 comments on commit a8f568e

Please sign in to comment.