use warnings;
use Test::More;
-use Test::Exception;
+use Test::Fatal;
{
package MyHomePage;
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' );