From: Dave Rolsky Date: Wed, 1 Jul 2009 17:45:28 +0000 (-0500) Subject: Reverse sense of test to check for success, not failure X-Git-Tag: 0.89~5^2~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ef330397d941ce43dbf5d88dd7906238a93b48f0;p=gitmo%2FClass-MOP.git Reverse sense of test to check for success, not failure --- diff --git a/t/088_immutable_role_application_bug.t b/t/088_immutable_role_application_bug.t index ef29669..7fb8bea 100644 --- a/t/088_immutable_role_application_bug.t +++ b/t/088_immutable_role_application_bug.t @@ -8,13 +8,13 @@ BEGIN { package My::Meta::Trait; use Moose::Role; - our $FAILED = 0; + our $HAS_METH = 0; before 'make_immutable' => sub { my ($meta) = @_; # $meta->name->meta should have the correct methods on it.. - $FAILED++ unless $meta->name->meta->get_method('some_method'); + $HAS_METH++ if $meta->name->meta->get_method('some_method'); }; } @@ -30,6 +30,6 @@ BEGIN { TODO: { local $TODO = 'This broke as of 07302fb'; - is( $My::Meta::Trait::FAILED, 0, 'Can find method' ); + ok( $My::Meta::Trait::HAS_METH, 'Can find method' ); }