Sha256: c27d4694fcb6ef455b850efcb1421f1a953f1343e017884730ba1c3be4b6aea7
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 Bytes
Contents
# $Id$ 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
filterfish-logging-0.9.8 | test/config/test_yaml_configurator.rb |
logging-0.8.0 | test/config/test_yaml_configurator.rb |