X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fauthor%2Ftest-my-dependents.t;h=a8ca16e604ea618af1ac5b83f9c1a0bead03f785;hb=4d438a84f437bcb3c43a04c27823b8b431cd3f55;hp=814058c2a713d9f699766da82de80ba0c2674f87;hpb=3be21337e3cd9e3a5f7f44b0a26bd423876b1a00;p=gitmo%2FMoose.git diff --git a/xt/author/test-my-dependents.t b/xt/author/test-my-dependents.t index 814058c..a8ca16e 100644 --- a/xt/author/test-my-dependents.t +++ b/xt/author/test-my-dependents.t @@ -7,9 +7,10 @@ use Test::More; plan skip_all => 'This test will not run unless you set MOOSE_TEST_MD to a true value' unless $ENV{MOOSE_TEST_MD}; -eval 'use Test::DependentModules qw( test_all_dependents test_module );'; -plan skip_all => 'This test requires Test::DependentModules' - if $@; +use Test::Requires { + 'Test::DependentModules' => '0.01', # skip all if not installed +}; +use Test::DependentModules qw( test_all_dependents test_module ); $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');