Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 43399
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: bdeeney [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.70
Fixed in: (no value)



Subject: loop variable mistakenly (?) reset in TypeConstraints unit test
Not certain, but I believe line 56 of t/040_type_constraints/005_util_type_coercion.t should be removed, as it overwrites the value of the loop variable ($coercion). See attached patch.
Subject: Moose-0.70-coercion-unit-test-patch.diff
--- Moose-0.70/t/040_type_constraints/005_util_type_coercion.t.orig 2009-02-18 10:50:15.000000000 -0500 +++ Moose-0.70/t/040_type_constraints/005_util_type_coercion.t 2009-02-18 10:50:22.000000000 -0500 @@ -53,7 +53,6 @@ $anon_type->coercion ) { - my $coercion = find_type_constraint('Header')->coercion; isa_ok($coercion, 'Moose::Meta::TypeCoercion'); {
According to Hans Dieter Pearcey, this is fixed by http://github.com/ hdp/moose/commit/b0871377ee1fb633784cf69cd4d096a0c3183493 Thanks for the report! Shawn
On Sat Mar 28 23:38:04 2009, SARTAK wrote: Show quoted text
> According to Hans Dieter Pearcey, this is fixed by http://github.com/ > hdp/moose/commit/b0871377ee1fb633784cf69cd4d096a0c3183493
no, it was fixed here: http://github.com/nothingmuch/moose/commit/844f32e85796e06d10903e6aea34672dfff8981b