Fix AS test suite.

This commit is contained in:
José Valim
2011-12-10 11:17:00 +01:00
parent aace38ae09
commit cd7fbcbba8
2 changed files with 2 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ module ActiveSupport
def flush
@tags.delete(Thread.current)
@logger.flush if @logger.respond_to?(:flush)
end
def method_missing(method, *args)

View File

@@ -43,6 +43,7 @@ class BufferedLoggerTest < Test::Unit::TestCase
def test_write_binary_data_create_file
fname = File.join Dir.tmpdir, 'lol', 'rofl.log'
FileUtils.mkdir_p File.dirname(fname)
f = File.open(fname, 'w')
f.binmode