Fix building on perls with no . in @INC
[dbsrgits/DBIx-Class.git] / t / resultset_overload.t
index c5ecce8..8fb22e3 100644 (file)
@@ -1,14 +1,14 @@
+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();
 
-plan tests => 6;
-
 {
   my $rs = $schema->resultset("CD")->search({});
 
@@ -19,8 +19,10 @@ plan tests => 6;
 
 {
   my $rs = $schema->resultset("CD")->search({ title => "Does not exist" });
-  
+
   ok !$rs->count;
   is $rs, $rs->count, "resultset as number without results";
   ok $rs,             "resultset as boolean always true";
-}
\ No newline at end of file
+}
+
+done_testing;