convert all uses of Test::Exception to Test::Fatal
[catagits/Catalyst-Runtime.git] / t / custom_exception_class_simple.t
index 24983fa..d11bbd3 100644 (file)
@@ -5,16 +5,16 @@ use warnings;
 use FindBin qw/$Bin/;
 use lib "$Bin/lib";
 use Test::More tests => 2;
-use Test::Exception;
+use Test::Fatal;
 
-lives_ok {
+is exception {
     require TestAppClassExceptionSimpleTest;
-} 'Can load application';
+}, undef, 'Can load application';
 
 
-lives_ok {
+is exception {
     Catalyst::Exception->throw
-} 'throw is properly stubbed out';
+}, undef, 'throw is properly stubbed out';