From: Jesse Luehrs Date: Sat, 17 Sep 2011 23:16:22 +0000 (-0500) Subject: fix broken test X-Git-Tag: v0.30~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Types.git;a=commitdiff_plain;h=bec8c623f141b807a1445878602893af3a351dde fix broken test 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. --- diff --git a/t/17_syntax_errors.t b/t/17_syntax_errors.t index fa6b853..bd601c3 100644 --- a/t/17_syntax_errors.t +++ b/t/17_syntax_errors.t @@ -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; };