From: Daniel Westermann-Clark Date: Sat, 28 Jan 2006 22:06:44 +0000 (+0000) Subject: Properly skip test when C::M::DBIC::Plain is not installed (thanks to siracusa for... X-Git-Tag: v0.05005~74 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cd67f809f8e6bff1d3a7df356fa7dc8763f6edbf;p=dbsrgits%2FDBIx-Class.git Properly skip test when C::M::DBIC::Plain is not installed (thanks to siracusa for pointing it out) --- diff --git a/Changes b/Changes index 6060d97..c049e4e 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for DBIx::Class + - properly skip t/30dbicplain.t when Catalyst::Model::DBIC::Plain isn't + installed + 0.04999_06 2006-01-28 21:20:32 - fix Storage/DBI (tried to load deprecated ::Exception component) diff --git a/t/30dbicplain.t b/t/30dbicplain.t index b0546b3..944dbc7 100644 --- a/t/30dbicplain.t +++ b/t/30dbicplain.t @@ -4,11 +4,10 @@ use strict; use warnings; use Test::More; -eval 'use Catalyst::Model::DBIC::Plain; 1' +use lib qw(t/lib); +eval 'use DBICTest::Plain; 1' or plan skip_all => 'Install Catalyst::Model::DBIC::Plain to run this test'; -plan tests => 1; -use lib qw(t/lib); -use DBICTest::Plain; +plan tests => 1; cmp_ok(DBICTest::Plain->resultset('Test')->count, '>', 0, 'count is valid');