[Bast-commits] r6110 - in DBIx-Class/0.08:
branches/count_distinct/t/resultset trunk/t/resultset
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Sun May 3 00:00:22 GMT 2009
Author: ribasushi
Date: 2009-05-03 00:00:19 +0000 (Sun, 03 May 2009)
New Revision: 6110
Modified:
DBIx-Class/0.08/branches/count_distinct/t/resultset/as_query.t
DBIx-Class/0.08/trunk/t/resultset/as_query.t
Log:
Failing test without immediate fixes go to branches, not to trunk
Modified: DBIx-Class/0.08/branches/count_distinct/t/resultset/as_query.t
===================================================================
--- DBIx-Class/0.08/branches/count_distinct/t/resultset/as_query.t 2009-05-02 19:11:40 UTC (rev 6109)
+++ DBIx-Class/0.08/branches/count_distinct/t/resultset/as_query.t 2009-05-03 00:00:19 UTC (rev 6110)
@@ -7,7 +7,7 @@
use Test::More;
-plan ( tests => 4 );
+plan ( tests => 5 );
use lib qw(t/lib);
use DBICTest;
@@ -66,4 +66,13 @@
);
}
+{
+ my $rs = $schema->resultset("CD")->search(
+ { 'artist.name' => 'Caterwauler McCrae' },
+ { join => [qw/artist/]}
+ );
+ my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $rs->get_column('cdid')->as_query } } );
+ cmp_ok($subsel_rs->count, '==', $rs->count, 'Subselect on PK got the same row count');
+}
+
__END__
Modified: DBIx-Class/0.08/trunk/t/resultset/as_query.t
===================================================================
--- DBIx-Class/0.08/trunk/t/resultset/as_query.t 2009-05-02 19:11:40 UTC (rev 6109)
+++ DBIx-Class/0.08/trunk/t/resultset/as_query.t 2009-05-03 00:00:19 UTC (rev 6110)
@@ -7,7 +7,7 @@
use Test::More;
-plan ( tests => 5 );
+plan ( tests => 4 );
use lib qw(t/lib);
use DBICTest;
@@ -66,13 +66,4 @@
);
}
-{
- my $rs = $schema->resultset("CD")->search(
- { 'artist.name' => 'Caterwauler McCrae' },
- { join => [qw/artist/]}
- );
- my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $rs->get_column('cdid')->as_query } } );
- cmp_ok($subsel_rs->count, '==', $rs->count, 'Subselect on PK got the same row count');
-}
-
__END__
More information about the Bast-commits
mailing list