X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F003-immutable.t;h=60c275c1616ab6e0fca18bb0f05cd0b88f75ec59;hb=abf9a01fc4e37ac63054ada972091a1ea25a78cb;hp=618391e9228c94e106982cebd07246645e010d58;hpb=e01c727755cd4ef07804f34803c4329248820f20;p=gitmo%2FMooseX-Singleton.git diff --git a/t/003-immutable.t b/t/003-immutable.t index 618391e..60c275c 100644 --- a/t/003-immutable.t +++ b/t/003-immutable.t @@ -4,10 +4,10 @@ use warnings; use Scalar::Util qw( refaddr ); use Test::More; -BEGIN { - eval 'use Test::Warn'; - plan skip_all => 'These tests require Test::Warn' if $@; -} +use Test::Requires { + 'Test::Warn' => 0.01, # skip all if not installed +}; + { package MooseX::Singleton::Test;