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.2.1 test/appenders/test_string_io.rb
logging-2.2.0 test/appenders/test_string_io.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/logging-2.1.0/test/appenders/test_string_io.rb
logging-2.1.0 test/appenders/test_string_io.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/logging-1.8.2/test/appenders/test_string_io.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/logging-1.8.2/test/appenders/test_string_io.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/logging-1.8.2/test/appenders/test_string_io.rb
logging-2.0.0 test/appenders/test_string_io.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/logging-1.8.1/test/appenders/test_string_io.rb
logging-1.8.2 test/appenders/test_string_io.rb
logging-1.8.1 test/appenders/test_string_io.rb
logging-1.8.0 test/appenders/test_string_io.rb