X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F800_shikabased%2F006-role_type.t;h=5893ddbcdcd821a8d339f3b0387a7c592ea1ff10;hb=3b46bd4991dea7ead4e7f52a089222d24554e2bd;hp=24165c1af362508a2fc1b10660a301a594f4183e;hpb=47f36c052bd0722ea67a4fbc18aca51234a1f5bc;p=gitmo%2FMouse.git diff --git a/t/800_shikabased/006-role_type.t b/t/800_shikabased/006-role_type.t index 24165c1..5893ddb 100644 --- a/t/800_shikabased/006-role_type.t +++ b/t/800_shikabased/006-role_type.t @@ -29,14 +29,14 @@ use Test::More tests => 5; { package Response; use Mouse; - use Mouse::TypeRegistry; + use Mouse::Util::TypeConstraints; role_type Headers => { role => 'Response::Headers::Role' }; - coerce 'Headers' => +{ - HashRef => sub { + coerce 'Headers' => + from 'HashRef' => via { Response::Headers->new(%{ $_ }); }, - }; + ; has headers => ( is => 'rw',