[Bast-commits] r5791 - in DBIx-Class/0.08/trunk: . t
groditi at dev.catalyst.perl.org
groditi at dev.catalyst.perl.org
Sun Mar 22 01:10:30 GMT 2009
Author: groditi
Date: 2009-03-22 01:10:30 +0000 (Sun, 22 Mar 2009)
New Revision: 5791
Modified:
DBIx-Class/0.08/trunk/Changes
DBIx-Class/0.08/trunk/t/66relationship.t
Log:
adding test for exception if nullable rel call is not explicitly defined as undef on insert
Modified: DBIx-Class/0.08/trunk/Changes
===================================================================
--- DBIx-Class/0.08/trunk/Changes 2009-03-21 17:26:05 UTC (rev 5790)
+++ DBIx-Class/0.08/trunk/Changes 2009-03-22 01:10:30 UTC (rev 5791)
@@ -23,6 +23,8 @@
in the wrong order.
- columns/+columns attributes now support { as => select } hahsrefs
- support for views both in DBIC and via deploy() in SQLT
+ - test for not dying if a column isn't loaded after insert and a rel using
+ it is called. (eg ->new({ name => 'foo'})->bar if bar uses bar_id)
0.08099_06 2009-01-23 07:30:00 (UTC)
- Allow a scalarref to be supplied to the 'from' resultset attribute
Modified: DBIx-Class/0.08/trunk/t/66relationship.t
===================================================================
--- DBIx-Class/0.08/trunk/t/66relationship.t 2009-03-21 17:26:05 UTC (rev 5790)
+++ DBIx-Class/0.08/trunk/t/66relationship.t 2009-03-22 01:10:30 UTC (rev 5791)
@@ -8,7 +8,7 @@
my $schema = DBICTest->init_schema();
-plan tests => 70;
+plan tests => 71;
# has_a test
my $cd = $schema->resultset("CD")->find(4);
@@ -35,10 +35,11 @@
if ($INC{'DBICTest/HelperRels.pm'}) {
$artist->add_to_cds({ title => 'Big Flop', year => 2005 });
} else {
- $artist->create_related( 'cds', {
+ my $big_flop = $artist->create_related( 'cds', {
title => 'Big Flop',
year => 2005,
} );
+ lives_ok { $big_flop->genre} "Don't throw exception when col is not loaded after insert";
}
my $big_flop_cd = ($artist->search_related('cds'))[3];
More information about the Bast-commits
mailing list