X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F99dbic_sqlt_parser.t;h=0a4230637862ecaeaaa190914837ab8e19b87dae;hb=5432c6ae1a31569775574edd42cb3e3f6f79cfff;hp=b6683fb5fef211121fdcaa8304452cd284326053;hpb=181c0934308d8359a6fa194eeb9986b92795819f;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/99dbic_sqlt_parser.t b/t/99dbic_sqlt_parser.t index b6683fb..0a42306 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.09;"; + eval "use DBD::mysql; use SQL::Translator 0.09003;"; if ($@) { - plan skip_all => 'needs DBD::mysql and SQL::Translator 0.09 for testing'; + plan skip_all => 'needs DBD::mysql and 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); {