X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fdeprecated.t;h=9e5579e8519facc9ae67ecfef508f571b335a482;hp=b30df890b471acf6ed307d30efd9364bd675f4e0;hb=cc7738c0fb5c4b5dc601734e7b525391d81d6639;hpb=6b4ae531b0cbe59d006e5d069715d13dc3c9ad9f diff --git a/t/deprecated.t b/t/deprecated.t index b30df89..9e5579e 100644 --- a/t/deprecated.t +++ b/t/deprecated.t @@ -1,5 +1,3 @@ -#!/usr/bin/perl - use strict; use warnings; use FindBin qw/$Bin/; @@ -9,7 +7,10 @@ use Test::More tests => 4; my $warnings; BEGIN { # Do this at compile time in case we generate a warning when use # DeprecatedTestApp - $SIG{__WARN__} = sub { $warnings++ if $_[0] =~ /trying to use NEXT/ }; + $SIG{__WARN__} = sub { + $warnings++ if $_[0] =~ /uses NEXT, which is deprecated/; + $warnings++ if $_[0] =~ /trying to use NEXT, which is deprecated/; + }; } use Catalyst; # Cause catalyst to be used so I can fiddle with the logging. my $mvc_warnings; @@ -36,7 +37,4 @@ is( $mvc_warnings, 1, 'Get the ::MVC:: warning' ); ok( my $response = request('http://localhost/'), 'Request' ); is( $response->header('X-Catalyst-Plugin-Deprecated'), '1', 'NEXT plugin ran correctly' ); -SKIP: { - skip 'non-dev release', 1 unless Catalyst::_IS_DEVELOPMENT_VERSION(); - is( $warnings, 1, 'Got one and only one Adopt::NEXT warning'); -} +is( $warnings, 1, 'Got one and only one Adopt::NEXT warning');