Test actually dies hard due to that division, fix to just die and so get filled v0.25
Tomas Doran [Thu, 22 Oct 2009 20:47:05 +0000 (20:47 +0000)]
t/12check_error_scope.t

index 9a07524..f590c81 100644 (file)
@@ -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 );