diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-27 04:50:58 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-27 04:50:58 +0000 |
commit | 6f06ac6e1a2e2b3ebd9025c3e38b867e8279d6c9 (patch) | |
tree | ade7d2a79b0e103084a4d7f65bf3fa435b9801a3 /activesupport/test | |
parent | 1c68394b68507052103fc36406b140f23c348437 (diff) | |
download | rails-6f06ac6e1a2e2b3ebd9025c3e38b867e8279d6c9.tar.gz rails-6f06ac6e1a2e2b3ebd9025c3e38b867e8279d6c9.tar.bz2 rails-6f06ac6e1a2e2b3ebd9025c3e38b867e8279d6c9.zip |
BufferedLogger#add doesn't modify the message argument. Closes #9702.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/buffered_logger_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/buffered_logger_test.rb b/activesupport/test/buffered_logger_test.rb index 7d55715084..f15b4c3a37 100644 --- a/activesupport/test/buffered_logger_test.rb +++ b/activesupport/test/buffered_logger_test.rb @@ -38,4 +38,10 @@ class BufferedLoggerTest < Test::Unit::TestCase @logger.add(Logger::DEBUG) {evaluated = true} assert evaluated == false end + + def test_should_not_mutate_message + message_copy = @message.dup + @logger.info @message + assert_equal message_copy, @message + end end |