X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_core_setup_log.t;h=401ea9922abc6c629ef5f90bada104d7c0b8b7cf;hb=eaae9a9246b1c213dfd1fdff44f76c5c77562ab3;hp=843d10ebc79d14548d56393d595ab129780eb9c3;hpb=e24229207cb1369e0c4ad27a3261effe20d986a8;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_core_setup_log.t b/t/unit_core_setup_log.t index 843d10e..401ea99 100644 --- a/t/unit_core_setup_log.t +++ b/t/unit_core_setup_log.t @@ -34,9 +34,7 @@ local %ENV; # Ensure blank or someone, somewhere will fail.. $app->setup_log('error,warn'); ok !$app->debug, 'Not in debug mode'; test_log_object($app->log, - fatal => 0, # WTF - I thought log levels were additive these days, - # or do I not understand the patch which pupported to make - # them so? + fatal => 1, error => 1, warn => 1, info => 0, @@ -62,8 +60,8 @@ local %ENV; # Ensure blank or someone, somewhere will fail.. $app->setup_log('warn'); ok !$app->debug, 'Not In debug mode'; test_log_object($app->log, - fatal => 0, - error => 0, + fatal => 1, + error => 1, warn => 1, info => 0, debug => 0, @@ -73,16 +71,14 @@ local %ENV; # Ensure blank or someone, somewhere will fail.. my $app = mock_app('TestLogAppEmptyString'); $app->setup_log(''); ok !$app->debug, 'Not In debug mode'; - TODO: { - local $TODO = 'THis is insane'; - test_log_object($app->log, - fatal => 0, - error => 0, - warn => 0, - info => 0, - debug => 0, - ); - } + # Note that by default, you get _all_ the log levels turned on + test_log_object($app->log, + fatal => 1, + error => 1, + warn => 1, + info => 1, + debug => 1, + ); } { my $app = mock_app('TestLogAppDebugOnly');