Test that a lazy attr without a default or builder dies
[gitmo/Moose.git] / t / 060_compat / 001_module_refresh_compat.t
index 7d23dea..2eb8e09 100644 (file)
@@ -28,9 +28,9 @@ do {
 
     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
@@ -79,9 +79,9 @@ ok(!TestBaz->isa('Foo'), '... TestBaz is not a Foo');
     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');