X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fdeprecated_appclass_action_warnings.t;h=d809349fb2060c9834619c7a228edd90e0fe31b9;hb=6ac0784b4442b46abae68c76318c2189221e725d;hp=a9979fef2af9f305cdc18b9925cca4c5169df2e5;hpb=5ec24151d10209c4bf8b4522e515dd775b51fa9c;p=catagits%2FCatalyst-Runtime.git diff --git a/t/deprecated_appclass_action_warnings.t b/t/deprecated_appclass_action_warnings.t index a9979fe..d809349 100644 --- a/t/deprecated_appclass_action_warnings.t +++ b/t/deprecated_appclass_action_warnings.t @@ -5,14 +5,9 @@ use FindBin; use lib "$FindBin::Bin/lib"; use Test::More; -use Catalyst::Test 'DeprecatedActionsInAppClassTestApp'; -plan tests => 3; +eval 'use DeprecatedActionsInAppClassTestApp'; +ok( $@, 'application dies if it has actions'); +like( $@, qr/cannot be controllers anymore/, 'for the correct reason' ); -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( $warnings, 1, 'Get the appclass action warning' ); \ No newline at end of file +done_testing;