From: gfx Date: Thu, 24 Sep 2009 07:18:51 +0000 (+0900) Subject: Skip a test requiring method modifiers X-Git-Tag: 0.35~33^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4fcab48881ecd200c3d83d563fccda833fdc5c28;p=gitmo%2FMouse.git Skip a test requiring method modifiers --- diff --git a/t/020_attributes/015_attribute_traits.t b/t/020_attributes/015_attribute_traits.t index 4197708..2c557ca 100644 --- a/t/020_attributes/015_attribute_traits.t +++ b/t/020_attributes/015_attribute_traits.t @@ -4,7 +4,15 @@ use lib 't/lib'; use strict; use warnings; -use Test::More tests => 12; +use Test::More; +BEGIN{ + if(eval{ require Class::Method::Modifiers::Fast } || eval{ require Class::Method::Modifiers }){ + plan tests => 12; + } + else{ + plan skip_all => 'This test requires Class::Method::Modifiers(::Fast)?'; + } +} use Test::Exception; use Test::Mouse;