Update to Rails 2.3.8
This commit is contained in:
parent
6677b46cb4
commit
f0635301aa
429 changed files with 17683 additions and 4047 deletions
|
@ -66,11 +66,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
|
||||
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
|
||||
|
@ -79,11 +79,11 @@ class BufferedLoggerTest < Test::Unit::TestCase
|
|||
|
||||
(ActiveSupport::BufferedLogger::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
|
||||
assert !@output.string.empty?, "@logger.send(:buffer).size.to_s should not be empty but it is empty"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -99,11 +99,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue