is($mccrae->cds2_pre2k->count, 2, 'CDs returned from expr w/cond');
+$schema->source($_)->resultset_class('DBIx::Class::ResultSet::WithDQMethods')
+ for qw(CD Tag);
+
my $cds = $schema->resultset('CD')
- ->search(expr { $_->artist->name eq 'Caterwauler McCrae' });
+ ->where(expr { $_->artist->name eq 'Caterwauler McCrae' });
is($cds->count, 3, 'CDs via join injection');
my $tags = $schema->resultset('Tag')
- ->search(expr { $_->cd->artist->name eq 'Caterwauler McCrae' });
+ ->where(expr { $_->cd->artist->name eq 'Caterwauler McCrae' });
is($tags->count, 5, 'Tags via two step join injection');