- fix ResultSet bug when requesting a subset of columns
[dbsrgits/DBIx-Class.git] / t / run / 01core.tl
index d97f31f..a2c35b7 100644 (file)
@@ -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,