Extra ;
[gitmo/Mouse.git] / t / 501_moose_coerce_mouse.t
index 1d8cc19..9633b0e 100644 (file)
@@ -20,9 +20,9 @@ use Test::Exception;
 {
     package Response;
     use Mouse;
-    use Mouse::TypeRegistry;
+    use Mouse::Util::TypeConstraints;
 
-    subtype 'HeadersType' => where { defined $_ && eval { $_->isa('Headers') } };
+    type 'HeadersType' => where { defined $_ && eval { $_->isa('Headers') } };
     coerce  'HeadersType' =>
         from 'HashRef' => via {
             Headers->new(%{ $_ });