Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.537 kb
use strict;
use warnings;
use Test::More;
use lib qw(t/lib);
use DBICTest;
my $schema = DBICTest->init_schema();
{
my $rs = $schema->resultset("CD")->search({});
ok $rs->count;
is $rs, $rs->count, "resultset as number with results";
ok $rs, "resultset as boolean always true";
}
{
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";
}
done_testing;
Jump to Line
Something went wrong with that request. Please try again.