is($_->meta->name, $_, '... initialized the meta correctly');
- ok ! exception {
+ is( exception {
Module::Refresh->new->refresh_module($_ . '.pm')
- }, '... successfully refreshed ' . $_;
+ }, undef, '... successfully refreshed ' );
} foreach @modules;
=pod
close FILE;
}
-ok ! exception {
+is( exception {
Module::Refresh->new->refresh_module('TestBaz.pm')
-}, '... successfully refreshed ' . $test_module_file;
+}, undef, '... successfully refreshed ' );
is(TestBaz->meta->name, 'TestBaz', '... initialized the meta correctly');
ok(TestBaz->meta->has_attribute('foo'), '... it has the foo attribute as well');