Begin replacing Test::Exception with a Moose::Util :test
[gitmo/Mouse.git] / t / 026-auto-deref.t
index b9a4971..577a7eb 100644 (file)
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 use Test::More tests => 15;
-use Test::Exception;
+use Mouse::Util ':test';
 
 do {
     package Class;
@@ -25,7 +25,7 @@ do {
             is         => 'rw',
             auto_deref => 1,
         );
-    } qr/You cannot auto-dereference without specifying a type constraint on attribute any/;
+    } qr/You cannot auto-dereference without specifying a type constraint on attribute \(any\)/;
 
     ::throws_ok {
         has scalar => (
@@ -33,7 +33,7 @@ do {
             isa        => 'Value',
             auto_deref => 1,
         );
-    } qr/You cannot auto-dereference anything other than a ArrayRef or HashRef on attribute scalar/;
+    } qr/You cannot auto-dereference anything other than a ArrayRef or HashRef on attribute \(scalar\)/;
 };
 
 my $obj;