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

Version Path
logging-2.4.0 test/appenders/test_string_io.rb
logging-2.3.1 test/appenders/test_string_io.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/logging-2.3.0/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/logging-2.3.0/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/logging-2.3.0/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/logging-2.3.0/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/logging-2.3.0/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/logging-2.3.0/test/appenders/test_string_io.rb
logging-2.3.0 test/appenders/test_string_io.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/appenders/test_string_io.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/appenders/test_string_io.rb