Fix incorrect whitespace test outside of checkouts
[dbsrgits/DBIx-Class.git] / t / 77join_count.t
index 499b08f..9de1a83 100644 (file)
@@ -1,15 +1,13 @@
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+
 use strict;
-use warnings;  
+use warnings;
 
 use Test::More;
-use lib qw(t/lib);
-use DBICTest;
 
-my $schema = DBICTest::init_schema();
+use DBICTest;
 
-eval "use DBD::SQLite";
-plan skip_all => 'needs DBD::SQLite for testing' if $@;
-plan tests => 4;
+my $schema = DBICTest->init_schema();
 
 cmp_ok($schema->resultset("CD")->count({ 'artist.name' => 'Caterwauler McCrae' },
                            { join => 'artist' }),
@@ -29,3 +27,4 @@ cmp_ok($schema->resultset("CD")->count(
            { join => [ qw/tags liner_notes/ ] } ),
            '==', 2, "Mixed count ok");
 
+done_testing;