diff options
author | José Valim <jose.valim@gmail.com> | 2012-08-23 10:59:42 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-08-23 11:01:55 -0300 |
commit | 891043d5d0d097fc51c3fccdfa563c3ba52b7f55 (patch) | |
tree | 76598db83b405c2d50baf1ba7cf0e3feb60fc756 /activesupport/test | |
parent | e8eb68c19a423362f7c5fc3fea09803367d764d4 (diff) | |
download | rails-891043d5d0d097fc51c3fccdfa563c3ba52b7f55.tar.gz rails-891043d5d0d097fc51c3fccdfa563c3ba52b7f55.tar.bz2 rails-891043d5d0d097fc51c3fccdfa563c3ba52b7f55.zip |
Revert "Use join without default separator"
This reverts commit b0ab8dc0b2b0f580ffe5ac9ff57fd13152e18577
because it was removing the contents of the message when we
did not have any tag. A test case is also committed.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/tagged_logging_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/tagged_logging_test.rb b/activesupport/test/tagged_logging_test.rb index 0751c2469e..43cf1a8e4f 100644 --- a/activesupport/test/tagged_logging_test.rb +++ b/activesupport/test/tagged_logging_test.rb @@ -29,6 +29,11 @@ class TaggedLoggingTest < ActiveSupport::TestCase assert_equal "[BCX] [Jason] [New] Funky time\n", @output.string end + test "does not strip message content" do + @logger.info " Hello" + assert_equal " Hello\n", @output.string + end + test "provides access to the logger instance" do @logger.tagged("BCX") { |logger| logger.info "Funky time" } assert_equal "[BCX] Funky time\n", @output.string |