Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 050_metaclasses / 021_export_with_prototype.t
index 6c8f5e2..97227c6 100644 (file)
@@ -3,20 +3,20 @@ package MyExporter::User;
 use MyExporter;
 
 use Test::More;
-use Test::Exception;
+use Test::Fatal;
 
-lives_and {
+is( exception {
     with_prototype {
         my $caller = caller(0);
         is($caller, 'MyExporter', "With_caller prototype code gets called from MyMooseX");
     };
-} "check function with prototype";
+}, undef, "check function with prototype" );
 
-lives_and {
+is( exception {
     as_is_prototype {
         my $caller = caller(0);
         is($caller, 'MyExporter', "As-is prototype code gets called from MyMooseX");
     };
-} "check function with prototype";
+}, undef, "check function with prototype" );
 
 done_testing;