X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F800_shikabased%2F005-class_type.t;h=d8b89cff3182c0bb196cd04a68006430da49847f;hb=63d74d7adc05bdf93288048a851adaefd6ffc8d3;hp=b47077c2af713b664377db019ab1b021ed6d807d;hpb=47f36c052bd0722ea67a4fbc18aca51234a1f5bc;p=gitmo%2FMouse.git diff --git a/t/800_shikabased/005-class_type.t b/t/800_shikabased/005-class_type.t index b47077c..d8b89cf 100644 --- a/t/800_shikabased/005-class_type.t +++ b/t/800_shikabased/005-class_type.t @@ -14,11 +14,11 @@ use Test::More tests => 4; use Mouse::TypeRegistry; class_type Headers => { class => 'Response::Headers' }; - coerce 'Headers' => +{ - HashRef => sub { + coerce 'Headers' => + from 'HashRef' => via { Response::Headers->new(%{ $_ }); }, - }; + ; has headers => ( is => 'rw',