From: Tyler Riddle Date: Thu, 8 Nov 2012 18:41:27 +0000 (-0800) Subject: update tests X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0ce9e4affa3d69284302de3f65c81b506a7370cf;p=scpubgit%2FSystem-Introspector.git update tests --- diff --git a/t/logger.t b/t/logger.t index a05f839..d40869b 100644 --- a/t/logger.t +++ b/t/logger.t @@ -1,8 +1,8 @@ use strictures 1; use Test::More; -use System::Introspector::Logger qw ( :log get_router); +use System::Introspector::Logger qw ( :log router); -ok (get_router->does('Log::Contextual::Role::Router'), 'router exists'); +ok (router->does('Log::Contextual::Role::Router'), 'router exists'); -done_testing; \ No newline at end of file +done_testing; diff --git a/t/logsetup.pl b/t/logsetup.pl index 3c3db5b..e9343a4 100644 --- a/t/logsetup.pl +++ b/t/logsetup.pl @@ -11,10 +11,10 @@ sub _output { } package main; -use System::Introspector::Logger qw( :log get_router ); +use System::Introspector::Logger qw( :log router ); #make sure to enable execution of every logging code block #by setting the log level as high as it can go -get_router->connect(System::Introspector::Logger::TestOutput->new( +router->connect(System::Introspector::Logger::TestOutput->new( min_level => 'trace', max_level => 'error', level_names => Object::Remote::Logging->arg_levels(), ));