Begin replacing Test::Exception with a Moose::Util :test
[gitmo/Mouse.git] / t / 010-required.t
index 3a8be4c..0bf5f83 100644 (file)
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 use Test::More tests => 3;
-use Test::Exception;
+use Mouse::Util ':test';
 
 do {
     package Class;
@@ -30,7 +30,7 @@ do {
     );
 };
 
-throws_ok { Class->new } qr/Attribute 'foo' is required/, "required attribute is required";
+throws_ok { Class->new } qr/Attribute \(foo\) is required/, "required attribute is required";
 lives_ok { Class->new(foo => 5) } "foo is the only required but unfulfilled attribute";
 lives_ok { Class->new(foo => 1, bar => 1, baz => 1, quux => 1) } "all attributes specified";