X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F76select.t;h=b3b491ad80d324b968d2f94cbc57153c579206f2;hb=ea3ee77d2d9e137b07ca4b2db14986e8310f4bec;hp=81ecf0d9492b256335206f0fe8447f367da839e1;hpb=a5a7bb733a940db710b7408508374833683a2e79;p=dbsrgits%2FDBIx-Class.git diff --git a/t/76select.t b/t/76select.t index 81ecf0d..b3b491a 100644 --- a/t/76select.t +++ b/t/76select.t @@ -1,9 +1,11 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; use Test::Exception; -use lib qw(t/lib); + use DBICTest ':DiffSQL'; my $schema = DBICTest->init_schema(); @@ -60,6 +62,7 @@ my $subsel = $cds->search ({}, { is ($subsel->count, 2, 'Subselect correctly limited the rs to 2 cds'); is ($subsel->next->title, $cds->next->title, 'First CD title match'); is ($subsel->next->title, $cds->next->title, 'Second CD title match'); +$cds->reset; is($schema->resultset('CD')->current_source_alias, "me", '$rs->current_source_alias returns "me"');