Sha256: 5e15e99df4658c46d60e950f4ec13feaa88312742fd5975828aa9938be144ae1
Contents?: true
Size: 970 Bytes
Versions: 3
Compression:
Stored size: 970 Bytes
Contents
# $Id: test_yaml_configurator.rb 88 2008-02-08 18:47:36Z tim_pease $ 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
logging-0.6.3 | test/config/test_yaml_configurator.rb |
logging-0.7.0 | test/config/test_yaml_configurator.rb |
logging-0.7.1 | test/config/test_yaml_configurator.rb |