From: Karen Etheridge Date: Sat, 27 Oct 2012 21:56:52 +0000 (-0700) Subject: RT#80310: skip t/around-does.t if CMM is not installed X-Git-Tag: v1.002002~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2de4b197689bc6e68e7375b439d455d6e563cc25;p=gitmo%2FRole-Tiny.git RT#80310: skip t/around-does.t if CMM is not installed --- diff --git a/Changes b/Changes index 4627c08..c96f7e7 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,6 @@ + - skip t/around-does.t when Class::Method::Modifiers is not installed + (RT#80310) + 1.002001 - 2012-10-26 - t/does-Moo.t moved to 'xt' (RT#80290) - don't die when looking for 'DOES' on perl < 5.10 (RT#80402) diff --git a/t/around-does.t b/t/around-does.t index 3b36d5d..d2a5473 100644 --- a/t/around-does.t +++ b/t/around-does.t @@ -1,5 +1,10 @@ use Test::More; +BEGIN { + plan skip_all => "Class::Method::Modifiers not installed" + unless eval "use Class::Method::Modifiers; 1"; +} + my $pass; my $pass2; @@ -28,4 +33,4 @@ ok(Local::Class->does('Local::Role')); ok($pass); ok(Local::Class->DOES('Local::Role')); ok($pass2); -done_testing(); \ No newline at end of file +done_testing();