Sha256: a6b8c42cfed7bff4016f52b2a0ed91e88a5e41855c665a28174ea270c9dc23b8

Contents?: true

Size: 901 Bytes

Versions: 43

Compression:

Stored size: 901 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[.. setup])

module TestLogging
module TestConfig

  class TestYamlConfigurator < Test::Unit::TestCase
    include LoggingTestCase

    def test_class_load
      assert_raise(::Logging::Config::YamlConfigurator::Error) {
        ::Logging::Config::YamlConfigurator.load(Object.new)
      }

      begin
        fd = File.open('data/logging.yaml','r')
        assert_nothing_raised {
          ::Logging::Config::YamlConfigurator.load(fd)
        }
      ensure
        fd.close
      end
    end

    def test_initialize
      io = StringIO.new
      io << YAML.dump({:one => 1, :two => 2, :three => 3})
      io.seek 0

      assert_raise(::Logging::Config::YamlConfigurator::Error) {
        ::Logging::Config::YamlConfigurator.new(io, :meh)
      }
    end

  end  # class TestYamlConfigurator

end  # module TestConfig
end  # module TestLogging

# EOF

Version data entries

43 entries across 43 versions & 6 rubygems

Version Path
TwP-logging-0.9.7 test/config/test_yaml_configurator.rb
TwP-logging-0.9.8.1 test/config/test_yaml_configurator.rb
TwP-logging-0.9.8.2 test/config/test_yaml_configurator.rb
TwP-logging-0.9.8 test/config/test_yaml_configurator.rb
TwP-logging-1.0.0 test/config/test_yaml_configurator.rb
TwP-logging-1.1.0 test/config/test_yaml_configurator.rb
TwP-logging-1.1.1 test/config/test_yaml_configurator.rb
TwP-logging-1.1.2 test/config/test_yaml_configurator.rb
TwP-logging-1.1.3 test/config/test_yaml_configurator.rb
TwP-logging-1.1.4 test/config/test_yaml_configurator.rb
TwP-logging-1.2.0 test/config/test_yaml_configurator.rb
TwP-logging-1.2.2 test/config/test_yaml_configurator.rb
ottobar-logging-0.9.5.1 test/config/test_yaml_configurator.rb
pjstadig-logging-1.1.4.1 test/config/test_yaml_configurator.rb
logging-1.4.3 test/config/test_yaml_configurator.rb
sgeorgi-logging-1.4.2 test/config/test_yaml_configurator.rb
logging-1.4.2 test/config/test_yaml_configurator.rb
logging-1.4.1 test/config/test_yaml_configurator.rb
logging-1.4.0 test/config/test_yaml_configurator.rb
redcar-0.3.1dev lib/logging/test/config/test_yaml_configurator.rb