X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F99dbic_sqlt_parser.t;h=9968a82e9c5650c2a8887b2078be53aee1230c28;hb=01c781fec019cc8af56329e1d88a38fde6d37b1f;hp=e4111357c9e9fa5b82bd2344db4ea6a7df3da159;hpb=228d5eae483427447ab808dee3f955a4d2ed0801;p=dbsrgits%2FDBIx-Class.git diff --git a/t/99dbic_sqlt_parser.t b/t/99dbic_sqlt_parser.t index e411135..9968a82 100644 --- a/t/99dbic_sqlt_parser.t +++ b/t/99dbic_sqlt_parser.t @@ -7,14 +7,18 @@ use DBICTest; BEGIN { - eval "use DBD::mysql; use SQL::Translator 0.09003;"; + eval "use SQL::Translator 0.09003;"; if ($@) { - plan skip_all => 'needs DBD::mysql and SQL::Translator 0.09003 for testing'; + plan skip_all => 'needs SQL::Translator 0.09003 for testing'; } } my $schema = DBICTest->init_schema(); -my @sources = grep { $_ ne 'Dummy' } ($schema->sources); # Dummy was yanked out by the sqlt hook test +# Dummy was yanked out by the sqlt hook test +# YearXXXXCDs are views +my @sources = grep { $_ ne 'Dummy' && $_ !~ /^Year\d{4}CDs$/ } + $schema->sources; + plan tests => ( @sources * 3); {