Properly skip test when C::M::DBIC::Plain is not installed (thanks to siracusa for...
[dbsrgits/DBIx-Class.git] / t / 30dbicplain.t
index b0546b3..944dbc7 100644 (file)
@@ -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');