X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F99dbic_sqlt_parser.t;h=d4b1a9f51b82875f56100c942cc35129fe8b6724;hb=d0f52dd4982eca28140a950367a203b9b466c3d2;hp=5bbd30254d0c6849e051d349b83dd477e239e7c1;hpb=c16205d0299ba4a4f97425312606a3523a8f26be;p=dbsrgits%2FDBIx-Class.git diff --git a/t/99dbic_sqlt_parser.t b/t/99dbic_sqlt_parser.t index 5bbd302..d4b1a9f 100644 --- a/t/99dbic_sqlt_parser.t +++ b/t/99dbic_sqlt_parser.t @@ -5,12 +5,11 @@ use Test::More; use lib qw(t/lib); use DBICTest; - BEGIN { - eval "use SQL::Translator 0.09003;"; - if ($@) { - plan skip_all => 'needs SQL::Translator 0.09003 for testing'; - } + require DBIx::Class::Storage::DBI; + plan skip_all => + 'Test needs SQL::Translator ' . DBIx::Class::Storage::DBI->_sqlt_minimum_version + if not DBIx::Class::Storage::DBI->_sqlt_version_ok; } my $schema = DBICTest->init_schema(); @@ -23,8 +22,6 @@ my @sources = grep $schema->sources ; -plan tests => ( @sources * 3); - { my $sqlt_schema = create_schema({ schema => $schema, args => { parser_args => { } } }); @@ -65,6 +62,8 @@ plan tests => ( @sources * 3); } } +done_testing; + sub create_schema { my $args = shift;