Add type constraint
[gitmo/Mouse.git] / t / 022-init-arg.t
index ca65fbc..9546e3d 100644 (file)
@@ -9,6 +9,7 @@ do {
 
     has name => (
         is       => 'rw',
+        isa      => 'Str',
         init_arg => 'key',
         default  => 'default',
     );