summaryrefslogtreecommitdiffstats
path: root/t/01-basic.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-10-31 16:24:41 -0500
committerJesse Luehrs <doy@tozt.net>2010-10-31 16:24:41 -0500
commit01b68b64a3f85bdf4615d74d357a4e8735ead106 (patch)
tree84928d9da70adc3efb9a0a514c0962b53d66aede /t/01-basic.t
parent53b0abc5127b2a28344d9c17caefefcbebbee11b (diff)
downloadeval-closure-01b68b64a3f85bdf4615d74d357a4e8735ead106.tar.gz
eval-closure-01b68b64a3f85bdf4615d74d357a4e8735ead106.zip
convert to Test::Fatal
Diffstat (limited to 't/01-basic.t')
-rw-r--r--t/01-basic.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/01-basic.t b/t/01-basic.t
index 7856f6e..d6d9b37 100644
--- a/t/01-basic.t
+++ b/t/01-basic.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
use Test::More;
-use Test::Exception;
+use Test::Fatal;
use Eval::Closure;
@@ -12,7 +12,7 @@ use Eval::Closure;
);
ok($code, "got something");
- throws_ok { $code->() } qr/^called$/, "got the right thing";
+ like(exception { $code->() }, qr/^called$/, "got the right thing");
}
{