From: gfx Date: Fri, 9 Oct 2009 05:46:51 +0000 (+0900) Subject: Fix a test for ancient perls X-Git-Tag: 0.37_05~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=4dd75d5701a927ee1e6aa1b2d3c765ae0545b8e8 Fix a test for ancient perls --- diff --git a/t/000_recipes/moose_cookbook_roles_recipe1.t b/t/000_recipes/moose_cookbook_roles_recipe1.t index 0a6a3b4..16f6775 100644 --- a/t/000_recipes/moose_cookbook_roles_recipe1.t +++ b/t/000_recipes/moose_cookbook_roles_recipe1.t @@ -87,8 +87,8 @@ my $hundred = US::Currency->new( amount => 100.00 ); isa_ok( $hundred, 'US::Currency' ); { local $TODO = 'UNIVERSAL::DOES is not supported'; -ok( $hundred->DOES("US::Currency"), "UNIVERSAL::DOES for class" ); -ok( $hundred->DOES("Comparable"), "UNIVERSAL::DOES for role" ); +ok( eval{ $hundred->DOES("US::Currency") }, "UNIVERSAL::DOES for class" ); +ok( eval{ $hundred->DOES("Comparable") }, "UNIVERSAL::DOES for role" ); } can_ok( $hundred, 'amount' ); is( $hundred->amount, 100, '... got the right amount' );