Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 070_native_traits / 101_remove_attribute.t
index 5e9305d..1551193 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Exception;
+use Test::Fatal;
 
 {
     package MyHomePage;
@@ -33,10 +33,9 @@ can_ok( $page, $_ ) for qw[
     reset_counter
 ];
 
-lives_ok {
+is( exception {
     $page->meta->remove_attribute('counter');
-}
-'... removed the counter attribute okay';
+}, undef, '... removed the counter attribute okay' );
 
 ok( !$page->meta->has_attribute('counter'),
     '... no longer has the attribute' );