X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F76select.t;h=4325a70d0fb4a0e7f8e66c7e51bc67ea40cf931d;hb=dfb45ec431de0598c0222aa067b9b9380143d7f8;hp=ca04b2678bc2bc333db035737b6dad662bd79d8b;hpb=0eb27426ceda801e6e872dc09eba34833fc0aaf0;p=dbsrgits%2FDBIx-Class.git diff --git a/t/76select.t b/t/76select.t index ca04b26..4325a70 100644 --- a/t/76select.t +++ b/t/76select.t @@ -8,7 +8,7 @@ use DBICTest; my $schema = DBICTest->init_schema(); -plan tests => 11; +plan tests => 12; my $rs = $schema->resultset('CD')->search({}, { @@ -49,7 +49,6 @@ lives_ok(sub { $rs->first->get_column('addedtitle2') }, '+select/+as chained sea # # from doesn't seem to be useful without using a scalarref - there were no initial tests >:( # -$schema->storage->debug (1); my $cds = $schema->resultset ('CD')->search ({}, { order_by => 'me.cdid'}); # make sure order is consistent cmp_ok ($cds->count, '>', 2, 'Initially populated with more than 2 CDs'); @@ -62,3 +61,5 @@ 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'); + +is($schema->resultset('CD')->current_source_alias, "me", '$rs->current_source_alias returns "me"');