X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=t%2F800_shikabased%2F010-isa-or.t;h=8b45921af06336642d906c660dec052f6c6f00a9;hp=8708ae389b93691ddaad26e73f7dacac7804fed2;hb=3b46bd4991dea7ead4e7f52a089222d24554e2bd;hpb=ee413bc51b36b2e61fdbcdc2244d40b64d2bb4d9 diff --git a/t/800_shikabased/010-isa-or.t b/t/800_shikabased/010-isa-or.t index 8708ae3..8b45921 100644 --- a/t/800_shikabased/010-isa-or.t +++ b/t/800_shikabased/010-isa-or.t @@ -5,7 +5,7 @@ use Test::More tests => 18; { package Foo; use Mouse; - use Mouse::TypeRegistry; + use Mouse::Util::TypeConstraints; subtype Baz => where { defined($_) && $_ eq 'Baz' }; coerce Baz => from 'ArrayRef', via { 'Baz' }; has 'bar' => ( is => 'rw', isa => 'Str | Baz | Undef', coerce => 1 ); @@ -51,7 +51,7 @@ is $f->bar, undef, 'bar is undef'; { package Bar; use Mouse; - use Mouse::TypeRegistry; + use Mouse::Util::TypeConstraints; subtype 'Type1' => where { defined($_) && $_ eq 'Name' }; coerce 'Type1', from 'Str', via { 'Names' }; @@ -74,7 +74,7 @@ is $foo->foo, 'Name', 'foo is Name'; { package Baz; use Mouse; - use Mouse::TypeRegistry; + use Mouse::Util::TypeConstraints; subtype 'Type3' => where { defined($_) && $_ eq 'Name' }; coerce 'Type3', from 'CodeRef', via { 'Name' };