test/log/spec_system-log.rb in pione-0.3.2 vs test/log/spec_system-log.rb in pione-0.4.0

- old
+ new

@@ -1,8 +1,8 @@ require 'pione/test-helper' -class TestLogger < Log::SystemLogger +class TestLogger < Log::PioneSystemLogger forward :@out, :puts, :fatal forward :@out, :puts, :error forward :@out, :puts, :warn forward :@out, :puts, :info forward :@out, :puts, :debug @@ -69,10 +69,11 @@ describe "Pione::Log::PioneSystemLogger" do before do @out = StringIO.new @logger = Log::PioneSystemLogger.new(@out) + @logger.level = :debug end after do @logger.terminate end @@ -81,11 +82,12 @@ end describe "Pione::Log::RubyStandardSystemLogger" do before do @out = StringIO.new - @logger = Log::RubyStandardSystemLogger.new(@out) + @logger = Rootage::RubyStandardLogger.new(@out) + @logger.level = :debug end behaves_like "system logger" end @@ -110,10 +112,10 @@ Logger::Syslog.const_set :SYSLOG, MockSyslog describe "Pione::Log::SyslogSystemLogger" do before do @out = MockSyslog.out - @logger = Log::SyslogSystemLogger.new + @logger = Rootage::SyslogLogger.new end after do MockSyslog.reset end