X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Static-Simple.git;a=blobdiff_plain;f=t%2F12check_error_scope.t;h=f590c817e378ab8dd5affd300e6f9afb5a93119f;hp=9a075241887a3fd7299aeb93b04ba3306406ddb2;hb=09a62aadb6e44fd4a05479dad4c05d444a9d8202;hpb=9936ddfaf8d03e14c37f00a9b21a8a078cd97648 diff --git a/t/12check_error_scope.t b/t/12check_error_scope.t index 9a07524..f590c81 100644 --- a/t/12check_error_scope.t +++ b/t/12check_error_scope.t @@ -17,7 +17,7 @@ my $orig_sub = *Catalyst::Plugin::Static::Simple::prepare_action{CODE}; *Catalyst::Plugin::Static::Simple::prepare_action = sub { my ($c) = @_; - eval { my $var = 1 / 0 }; + eval { die("FOO"); }; ok ($@, '$@ has a value.'); return $orig_sub->( $c );