Keep track of the source package of each type; other cleanups
[gitmo/Mouse.git] / t / 800_shikabased / 009-overwrite-builtin-subtype.t
index 9bdd60c..ce8a996 100644 (file)
@@ -4,8 +4,8 @@ use Test::More tests => 1;
 
 eval {
     package Request;
-    use Mouse::TypeRegistry;
+    use Mouse::Util::TypeConstraints;
 
-    subtype 'Int' => where { 1};
+    type 'Int' => where { 1};
 };
-like $@, qr/The type constraint 'Int' has already been created, cannot be created again in Request/;
+like $@, qr/The type constraint 'Int' has already been created in Mouse::Util::TypeConstraints and cannot be created again in Request/;