From: Rob Kinyon Date: Fri, 20 Feb 2009 04:53:34 +0000 (+0000) Subject: Added depedency guards X-Git-Tag: v0.08240~63^2~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d0a3e4e2efdfb2370e0dfe7a45a3aa08a2560ca3;hp=46e316fd5f510ce7ce79a4b1e15eaa378db7de2f;p=dbsrgits%2FDBIx-Class.git Added depedency guards --- diff --git a/t/resultset/as_query.t b/t/resultset/as_query.t index b573606..5071f0c 100644 --- a/t/resultset/as_query.t +++ b/t/resultset/as_query.t @@ -6,12 +6,18 @@ use warnings FATAL => 'all'; use Data::Dumper; use Test::More; + +BEGIN { + eval "use SQL::Abstract 1.49"; + plan $@ + ? ( skip_all => "Needs SQLA 1.49+" ) + : ( tests => 4 ); +} + use lib qw(t/lib); use DBICTest; use DBIC::SqlMakerTest; -plan tests => 4; - my $schema = DBICTest->init_schema(); my $art_rs = $schema->resultset('Artist'); my $cdrs = $schema->resultset('CD'); diff --git a/t/search/subquery.t b/t/search/subquery.t index e0f7291..f8a7e79 100644 --- a/t/search/subquery.t +++ b/t/search/subquery.t @@ -6,12 +6,18 @@ use warnings FATAL => 'all'; use Data::Dumper; use Test::More; + +BEGIN { + eval "use SQL::Abstract 1.49"; + plan $@ + ? ( skip_all => "Needs SQLA 1.49+" ) + : ( tests => 6 ); +} + use lib qw(t/lib); use DBICTest; use DBIC::SqlMakerTest; -plan tests => 6; - my $schema = DBICTest->init_schema(); my $art_rs = $schema->resultset('Artist'); my $cdrs = $schema->resultset('CD');