Skip to content

Commit

Permalink
added a test for count() caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Guenther committed Mar 14, 2006
1 parent 62cb84e commit 717f349
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/run/23cache.tl
Expand Up @@ -84,7 +84,9 @@ $rs = $schema->resultset("Artist")->search(
}
);
{
my $artist_count_before = $schema->resultset('Artist')->count;
$schema->resultset("Artist")->create({artistid=>4,name=>qq{Humoungous Hamsters}});
is($schema->resultset('Artist')->count, $artist_count_before + 1, 'count() reflects new artist');
my $artist = $schema->resultset("Artist")->search(
{ artistid => 4 },{prefetch=>[qw/cds/]}
)->first;
Expand Down

0 comments on commit 717f349

Please sign in to comment.