From: Peter Rabbitson <ribasushi@cpan.org>
Date: Wed, 22 Jul 2009 01:50:57 +0000 (+0000)
Subject: Lazy folks do not run the whole test suite before merging >:(
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e8a8d919401a442621164a1442636229d42e218;p=dbsrgits%2FDBIx-Class-Historic.git

Lazy folks do not run the whole test suite before merging >:(
---

diff --git a/t/99dbic_sqlt_parser.t b/t/99dbic_sqlt_parser.t
index 9968a82..bbae42d 100644
--- a/t/99dbic_sqlt_parser.t
+++ b/t/99dbic_sqlt_parser.t
@@ -15,9 +15,13 @@ BEGIN {
 
 my $schema = DBICTest->init_schema();
 # Dummy was yanked out by the sqlt hook test
+# CustomSql tests the horrific/deprecated ->name(\$sql) hack
 # YearXXXXCDs are views
-my @sources = grep { $_ ne 'Dummy' && $_ !~ /^Year\d{4}CDs$/ } 
-                $schema->sources;
+#
+my @sources = grep
+  { $_ !~ /^ (?: Dummy | CustomSql | Year\d{4}CDs ) $/x }
+  $schema->sources
+;
 
 plan tests => ( @sources * 3);