Add view test.
[dbsrgits/DBIx-Class.git] / t / 104view.t
CommitLineData
bccd177f 1use strict;
2use warnings;
3
4use Test::More;
5use Test::Exception;
6use lib qw(t/lib);
7use DBICTest;
8
9my $schema = DBICTest->init_schema();
10
11plan tests => 1;
12
13my $cds_rs = $schema->resultset('CD')->search( { year => 2000 });
14my $year2kcds_rs = $schema->resultset('Year2000CDs');
15
16is($cds_rs->count, $year2kcds_rs->count, 'View Year2000CDs sees all CDs in year 2000');
17
18
19