added to class_type
[gitmo/Mouse.git] / t / 011-lazy.t
index 168eaf1..e23e674 100644 (file)
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 use Test::More tests => 16;
-use Test::Exception;
+use t::Exception;
 
 my $lazy_run = 0;
 
@@ -27,7 +27,7 @@ do {
             is   => 'rw',
             lazy => 1,
         );
-    } qr/You must specify a default for lazy attribute 'lazy_no_default'/;
+    } qr/You cannot have lazy attribute \(lazy_no_default\) without specifying a default value for it/;
 };
 
 my $object = Class->new;