clean up type type searching
[gitmo/MooseX-Types.git] / t / 17_syntax_errors.t
index 67d7432..bd601c3 100644 (file)
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 5;
+use Test::More;
 
 # remove this when CheckedUtilExports croaks instead of carps
 $SIG{__WARN__} = sub { die @_ };
@@ -81,13 +81,15 @@ 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;
 };
 eval $role_type;
 is $@, '', "declared role_types don't throw error";
+
+done_testing();