use lib 't/lib', 'lib';
use Test::More;
-use Test::Fatal;
+use Test::Exception;
use File::Spec;
use File::Temp 'tempdir';
is($_->meta->name, $_, '... initialized the meta correctly');
- ok ! exception {
+ lives_ok {
Module::Refresh->new->refresh_module($_ . '.pm')
- }, '... successfully refreshed ' . $_;
+ } '... successfully refreshed ' . $_;
} foreach @modules;
=pod
close FILE;
}
-ok ! exception {
+lives_ok {
Module::Refresh->new->refresh_module('TestBaz.pm')
-}, '... successfully refreshed ' . $test_module_file;
+} '... successfully refreshed ' . $test_module_file;
is(TestBaz->meta->name, 'TestBaz', '... initialized the meta correctly');
ok(TestBaz->meta->has_attribute('foo'), '... it has the foo attribute as well');