From: Peter Rabbitson Date: Fri, 8 Jan 2010 18:14:42 +0000 (+0000) Subject: Make test look even more like http://lists.scsys.co.uk/pipermail/dbix-class/2009... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ca45887109be96f794fccbaedf7666f82f1073d6;p=dbsrgits%2FDBIx-Class-Historic.git Make test look even more like lists.scsys.co.uk/pipermail/dbix-class/2009-November/008599.html --- diff --git a/t/71mysql.t b/t/71mysql.t index 5c5d53c..aa2db86 100644 --- a/t/71mysql.t +++ b/t/71mysql.t @@ -243,11 +243,11 @@ ZEROINSEARCH: { is ($rs->count, 6, 'CDs created successfully'); $rs = $rs->search ({}, { - select => [ {year => 'year'} ], as => ['y'], distinct => 1, order_by => 'year', + select => [ \ 'YEAR(year)' ], as => ['y'], distinct => 1, }); is_deeply ( - [ $rs->get_column ('y')->all ], + [ sort ($rs->get_column ('y')->all) ], [ sort keys %$cds_per_year ], 'Years group successfully', ); @@ -255,7 +255,7 @@ ZEROINSEARCH: { $rs->create ({ artist => 1, year => '0-1-1', title => 'Jesus Rap' }); is_deeply ( - [ $rs->get_column ('y')->all ], + [ sort $rs->get_column ('y')->all ], [ 0, sort keys %$cds_per_year ], 'Zero-year groups successfully', );