projects
/
catagits/Catalyst-Plugin-Static-Simple.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9936ddf
)
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
patch
|
blob
|
blame
|
history
diff --git
a/t/12check_error_scope.t
b/t/12check_error_scope.t
index
9a07524
..
f590c81
100644
(file)
--- 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 );