diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-05-17 22:45:36 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-18 16:12:59 +0200 |
commit | 0dab076a08110b87aacc27e2ce5a20173b3d458d (patch) | |
tree | f6fe11b7efed250550c0e11755c9352617bbefdd /activesupport | |
parent | c00f8e49add3f4ab6416e738c4ee2837370b2f3f (diff) | |
download | rails-0dab076a08110b87aacc27e2ce5a20173b3d458d.tar.gz rails-0dab076a08110b87aacc27e2ce5a20173b3d458d.tar.bz2 rails-0dab076a08110b87aacc27e2ce5a20173b3d458d.zip |
Better error messages for some of ActiveSupport tests
[#4635 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/buffered_logger_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activesupport/test/buffered_logger_test.rb b/activesupport/test/buffered_logger_test.rb index 5b072d4102..850febb959 100644 --- a/activesupport/test/buffered_logger_test.rb +++ b/activesupport/test/buffered_logger_test.rb @@ -69,11 +69,11 @@ class BufferedLoggerTest < Test::Unit::TestCase 4.times do @logger.info 'wait for it..' - assert @output.string.empty?, @output.string + assert @output.string.empty?, "@output.string should be empty but it is #{@output.string}" end @logger.flush - assert !@output.string.empty?, @logger.send(:buffer).size.to_s + assert !@output.string.empty?, "@logger.send(:buffer).size.to_s should not be empty but it is empty" end define_method "test_disabling_auto_flush_with_#{disable.inspect}_should_flush_at_max_buffer_size_as_failsafe" do @@ -82,11 +82,11 @@ class BufferedLoggerTest < Test::Unit::TestCase (Logger::MAX_BUFFER_SIZE - 1).times do @logger.info 'wait for it..' - assert @output.string.empty?, @output.string + assert @output.string.empty?, "@output.string should be empty but is #{@output.string}" end @logger.info 'there it is.' - assert !@output.string.empty?, @logger.send(:buffer).size.to_s + assert !@output.string.empty?, "@logger.send(:buffer).size.to_s should not be empty but it is empty" end end @@ -102,11 +102,11 @@ class BufferedLoggerTest < Test::Unit::TestCase 4.times do @logger.info 'wait for it..' - assert @output.string.empty?, @output.string + assert @output.string.empty?, "@output.string should be empty but it is #{@output.string}" end @logger.info 'there it is.' - assert !@output.string.empty?, @output.string + assert !@output.string.empty?, "@output.string should not be empty but it is empty" end def test_should_create_the_log_directory_if_it_doesnt_exist |