add mluti option with test
[gitmo/Mouse.git] / t / 800_shikabased / 006-role_type.t
index 24165c1..fcbb55e 100644 (file)
@@ -32,11 +32,11 @@ use Test::More tests => 5;
     use Mouse::TypeRegistry;
 
     role_type Headers => { role => 'Response::Headers::Role' };
-    coerce 'Headers' => +{
-        HashRef => sub {
+    coerce 'Headers' =>
+        from 'HashRef' => via {
             Response::Headers->new(%{ $_ });
         },
-    };
+    ;
 
     has headers => (
         is     => 'rw',