X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F06notabs.t;h=8676ff617dccedee1571c363b3008e1e7f40747c;hb=d314b84d347d3340bd83a9889c9a171786cdfc70;hp=7eba2c6f411a30fe622fbc1e1d4d26ab3b1a39da;hpb=a80644864e3da93394704dc9339710227cc64aa6;p=dbsrgits%2FDBIx-Class.git diff --git a/t/06notabs.t b/t/06notabs.t index 7eba2c6..8676ff6 100644 --- a/t/06notabs.t +++ b/t/06notabs.t @@ -5,24 +5,20 @@ use Test::More; use lib 't/lib'; use DBICTest; -my @MODULES = ( - 'Test::NoTabs 0.9', -); - # Don't run tests for installs unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) { plan( skip_all => "Author tests not required for installation" ); } -# Load the testing modules -foreach my $MODULE ( @MODULES ) { - eval "use $MODULE"; - if ( $@ ) { - $ENV{RELEASE_TESTING} - ? die( "Failed to load required release-testing module $MODULE" ) - : plan( skip_all => "$MODULE not available for testing" ); - } + +require DBIx::Class; +unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_notabs') ) { + my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_notabs'); + $ENV{RELEASE_TESTING} || DBICTest::AuthorCheck->is_author + ? die ("Failed to load release-testing module requirements: $missing") + : plan skip_all => "Test needs: $missing" } -all_perl_files_ok(); +Test::NoTabs::all_perl_files_ok(qw/t lib script maint/); -done_testing; +# FIXME - need to fix Test::NoTabs +#done_testing;