aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-01-31 21:26:17 +0900
committerkennyj <kennyj@gmail.com>2012-01-31 21:26:17 +0900
commit91700bfc2dce8a9c473087d206a3498eeecb1ca0 (patch)
tree842b85a2244365a7e901ab1bbaec06b7cad13255 /activesupport/test
parentb2955edcea63e3daa347dc4e05b9abd380176ac8 (diff)
downloadrails-91700bfc2dce8a9c473087d206a3498eeecb1ca0.tar.gz
rails-91700bfc2dce8a9c473087d206a3498eeecb1ca0.tar.bz2
rails-91700bfc2dce8a9c473087d206a3498eeecb1ca0.zip
Fix GH #4760. A Block was not evaluated.
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/tagged_logging_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/tagged_logging_test.rb b/activesupport/test/tagged_logging_test.rb
index 7ecab33a9a..c838c073e6 100644
--- a/activesupport/test/tagged_logging_test.rb
+++ b/activesupport/test/tagged_logging_test.rb
@@ -70,4 +70,12 @@ class TaggedLoggingTest < ActiveSupport::TestCase
assert_nothing_raised { @logger.silence {} }
end
end
+
+ test "calls block" do
+ @logger.tagged("BCX") do
+ @logger.info { "Funky town" }
+ end
+ assert_equal "[BCX] Funky town\n", @output.string
+ end
+
end