X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fdeprecated_appclass_action_warnings.t;h=d809349fb2060c9834619c7a228edd90e0fe31b9;hb=gsoc_breadboard_with_app_instance;hp=6d73d6e61729abb390e7b149c1d31a74a9d2c3e9;hpb=fe3e42c35853baa14fe879401ea85bf4c49e8153;p=catagits%2FCatalyst-Runtime.git diff --git a/t/deprecated_appclass_action_warnings.t b/t/deprecated_appclass_action_warnings.t index 6d73d6e..d809349 100644 --- a/t/deprecated_appclass_action_warnings.t +++ b/t/deprecated_appclass_action_warnings.t @@ -5,9 +5,9 @@ use FindBin; use lib "$FindBin::Bin/lib"; use Test::More; -use Catalyst::Test 'DeprecatedActionsInAppClassTestApp'; -plan tests => 2; +eval 'use DeprecatedActionsInAppClassTestApp'; +ok( $@, 'application dies if it has actions'); +like( $@, qr/cannot be controllers anymore/, 'for the correct reason' ); -ok( my $response = request('http://localhost/foo'), 'Request' ); -ok( $response->is_success, 'Response Successful 2xx' ); +done_testing;