X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F01core.tl;h=a2c35b71737ed84967c363ad9e943944659f0244;hb=90f3f5ff9b01602cc4bca97fac113d65fb8efb7c;hp=d97f31f37485481dbdb044a6d855712ed85cddf4;hpb=81c92ae6d6d447ea08595235030032d16da902e7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/run/01core.tl b/t/run/01core.tl index d97f31f..a2c35b7 100644 --- a/t/run/01core.tl +++ b/t/run/01core.tl @@ -1,6 +1,6 @@ sub run_tests { -plan tests => 27; +plan tests => 28; my @art = DBICTest::Artist->search({ }, { order_by => 'name DESC'}); @@ -90,6 +90,9 @@ is($cd->year, 2005, 'set_columns ok'); $cd->discard_changes; +$cd = DBICTest::CD->search({ title => 'Spoonful of bees' }, { cols => ['title'] })->next; +is($cd->title, 'Spoonful of bees', 'subset of columns returned correctly'); + # insert_or_update $new = DBICTest::Track->new( { trackid => 100,