From: Paul Makepeace Date: Mon, 6 Feb 2006 13:45:33 +0000 (+0000) Subject: move DBICTest::Extra to after the Class::Insepctor check X-Git-Tag: v0.05005~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=da0d740f2ce5f2356973dd70834ff45395b27027;p=dbsrgits%2FDBIx-Class.git move DBICTest::Extra to after the Class::Insepctor check --- diff --git a/t/40resultsetmanager.t b/t/40resultsetmanager.t index 97f6fc7..0b7471a 100644 --- a/t/40resultsetmanager.t +++ b/t/40resultsetmanager.t @@ -5,15 +5,18 @@ use warnings; use Test::More; use lib qw(t/lib); -use DBICTest::Extra; BEGIN { - eval "use Class::Inspector"; - plan $@ - ? ( skip_all => 'needs Class:Inspector for testing' ) - : ( tests => 4 ); + eval { require Class::Inspector }; + if ($@ =~ m{Can.t locate Class/Inspector.pm}) { + plan skip_all => "ResultSetManager requires Class::Inspector"; + } else { + plan tests => 4; + } } +use DBICTest::Extra; # uses Class::Inspector + my $schema = DBICTest::Extra->compose_connection('DB', 'foo'); my $rs = $schema->resultset('Foo');