X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fadmin%2F03data.t;h=8bdd5626da1abf51190994ea3790897c3e3df887;hb=4fff7913ca44081e9c3d901912fdfba5e125d3c7;hp=338771e379b0d6fd68483fcdead9f6a99c50ed87;hpb=72cfa3b34d42b37694f192107428d4bcd6362d53;p=dbsrgits%2FDBIx-Class.git diff --git a/t/admin/03data.t b/t/admin/03data.t index 338771e..8bdd562 100644 --- a/t/admin/03data.t +++ b/t/admin/03data.t @@ -1,19 +1,3 @@ -# -#=============================================================================== -# -# FILE: 03sql.t -# -# DESCRIPTION: test sql manipulation funtions -# -# FILES: --- -# BUGS: --- -# NOTES: --- -# AUTHOR: Gordon Irving (), -# VERSION: 1.0 -# CREATED: 12/12/09 12:44:57 GMT -# REVISION: --- -#=============================================================================== - use strict; use warnings; @@ -23,8 +7,9 @@ use Test::Exception; use Test::Deep; BEGIN { - eval "use DBIx::Class::Admin"; - plan skip_all => "Deps not installed: $@" if $@; + require DBIx::Class; + plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for('admin') + unless DBIx::Class::Optional::Dependencies->req_ok_for('admin'); } use lib 't/lib'; @@ -77,6 +62,4 @@ use ok 'DBIx::Class::Admin'; is ($employees->count(), 1, "left Aran" ); } - - done_testing;