X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F05-with-attribute-helpers-backcompat.t;h=96cce5b36f2c9c8dbba91c3e0d59b072aec02b7a;hb=3272340d933b46c2b98be10b1923170739ce3c8a;hp=8605588d5c5a59776c53d9c7226481462fd47322;hpb=050e7d2987389c02a51137c08895ab026a6f6a11;p=gitmo%2FMooseX-ClassAttribute.git diff --git a/t/05-with-attribute-helpers-backcompat.t b/t/05-with-attribute-helpers-backcompat.t index 8605588..96cce5b 100644 --- a/t/05-with-attribute-helpers-backcompat.t +++ b/t/05-with-attribute-helpers-backcompat.t @@ -1,13 +1,12 @@ use strict; use warnings; -use Test::More; +use Test::More tests => 2; + +use Test::Requires { + 'MooseX::AttributeHelpers' => 0.23, # skip all if not installed +}; -BEGIN { - eval "use MooseX::AttributeHelpers 0.23;"; - plan skip_all => 'This test requires MooseX::AttributeHelpers 0.23+' - if $@; -} { package MyClass; @@ -29,4 +28,3 @@ is( MyClass->counter(), 0 ); MyClass->inc_counter(); is( MyClass->counter(), 1 ); -done_testing();