Sha256: e8aef7cab4847546d09d8b274e6488055840481014c652669a2a82fe88f590d5
Contents?: true
Size: 733 Bytes
Versions: 66
Compression:
Stored size: 733 Bytes
Contents
require File.expand_path('../setup', File.dirname(__FILE__)) module TestLogging module TestAppenders class TestStringIO < Test::Unit::TestCase include LoggingTestCase def setup super @appender = Logging.appenders.string_io('test_appender') @sio = @appender.sio @levels = Logging::LEVELS end def teardown @appender.close @appender = nil super end def test_reopen assert_equal @sio.object_id, @appender.sio.object_id @appender.reopen assert @sio.closed?, 'StringIO instance is closed' assert_not_equal @sio.object_id, @appender.sio.object_id end end # class TestStringIO end # module TestAppenders end # module TestLogging
Version data entries
66 entries across 58 versions & 6 rubygems