test/config/test_yaml_configurator.rb in logging-0.6.2 vs test/config/test_yaml_configurator.rb in logging-0.6.3
- old
+ new
@@ -1,10 +1,8 @@
-# $Id: test_yaml_configurator.rb 72 2007-12-26 21:59:58Z tim_pease $
+# $Id: test_yaml_configurator.rb 88 2008-02-08 18:47:36Z tim_pease $
-require 'stringio'
-require 'yaml'
-require 'test/setup.rb'
+require File.join(File.dirname(__FILE__), %w[.. setup])
module TestLogging
module TestConfig
class TestYamlConfigurator < Test::Unit::TestCase
@@ -29,10 +27,10 @@
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)
+ ::Logging::Config::YamlConfigurator.new(io, :meh)
}
end
end # class TestYamlConfigurator