X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F800_shikabased%2F009-overwrite-builtin-subtype.t;h=ce8a99672975541ff2dd052be8ab1f00a3906791;hb=92583b3320b6ed8b4673fc94e68af64b3cf106e3;hp=9bdd60cb4c4de6b94e99d4809009a611809b7e22;hpb=d3982c7e7f662fb205f4fca0a264c3479bba4438;p=gitmo%2FMouse.git diff --git a/t/800_shikabased/009-overwrite-builtin-subtype.t b/t/800_shikabased/009-overwrite-builtin-subtype.t index 9bdd60c..ce8a996 100644 --- a/t/800_shikabased/009-overwrite-builtin-subtype.t +++ b/t/800_shikabased/009-overwrite-builtin-subtype.t @@ -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/;