Merge branch 'pr/135' into release-candidates/rc-5.90116
[catagits/Catalyst-Runtime.git] / t / deprecated_appclass_action_warnings.t
index 6d73d6e..f25d8d5 100644 (file)
@@ -7,7 +7,12 @@ use lib "$FindBin::Bin/lib";
 use Test::More;
 use Catalyst::Test 'DeprecatedActionsInAppClassTestApp';
 
-plan tests => 2;
+plan tests => 3;
+
+my $warnings;
+my $logger = DeprecatedActionsInAppClassTestApp::Log->new;
+Catalyst->log($logger);
 
 ok( my $response = request('http://localhost/foo'), 'Request' );
 ok( $response->is_success, 'Response Successful 2xx' );
+is( $DeprecatedActionsInAppClassTestApp::Log::warnings, 1, 'Get the appclass action warning' );
\ No newline at end of file