+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({});
{
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;