fix broken test
Jesse Luehrs [Sat, 17 Sep 2011 23:16:22 +0000 (18:16 -0500)]
this test reuses type names (unintentionally). previously, moose
wouldn't care about redefining types to unrelated things if you did it
via class_type or role_type, but this was a bug which is now fixed.

t/17_syntax_errors.t

index fa6b853..bd601c3 100644 (file)
@@ -81,11 +81,11 @@ my $role_type = q{
     use MooseX::Types -declare => ['Foo'];
     use MooseX::Types::Moose 'Str';
 
-    role_type 'mtfnpy';
+    role_type 'ypnftm';
 
-    coerce mtfnpy =>
+    coerce ypnftm =>
         from Str,
-        via { bless \$_, 'mtfnpy' };
+        via { bless \$_, 'ypnftm' };
 
     1;
 };