projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
implement to subtype's as is moose way
[gitmo/Mouse.git]
/
t
/
800_shikabased
/
005-class_type.t
diff --git
a/t/800_shikabased/005-class_type.t
b/t/800_shikabased/005-class_type.t
index
b47077c
..
d8b89cf
100644
(file)
--- 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',