[Bast-commits] r5023 - DBIx-Class/0.08/trunk/t
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Thu Oct 30 12:26:06 GMT 2008
Author: ribasushi
Date: 2008-10-30 12:26:05 +0000 (Thu, 30 Oct 2008)
New Revision: 5023
Modified:
DBIx-Class/0.08/trunk/t/88result_set_column.t
Log:
Test direct sql passed to ResultSetColumn
Modified: DBIx-Class/0.08/trunk/t/88result_set_column.t
===================================================================
--- DBIx-Class/0.08/trunk/t/88result_set_column.t 2008-10-30 11:20:09 UTC (rev 5022)
+++ DBIx-Class/0.08/trunk/t/88result_set_column.t 2008-10-30 12:26:05 UTC (rev 5023)
@@ -7,17 +7,18 @@
my $schema = DBICTest->init_schema();
-plan tests => 10;
+plan tests => 11;
my $cd;
my $rs = $cd = $schema->resultset("CD")->search({});
my $rs_title = $rs->get_column('title');
my $rs_year = $rs->get_column('year');
+my $max_year = $rs->get_column(\'MAX (year)');
is($rs_title->next, 'Spoonful of bees', "next okay");
-
is_deeply( [ sort $rs_year->func('DISTINCT') ], [ 1997, 1998, 1999, 2001 ], "wantarray context okay");
+ok ($max_year->next == $rs_year->max, q/get_column (\'FUNC') ok/);
my @all = $rs_title->all;
cmp_ok(scalar @all, '==', 5, "five titles returned");
More information about the Bast-commits
mailing list