From: Matt S Trout Date: Thu, 10 May 2007 21:29:55 +0000 (+0000) Subject: dt test X-Git-Tag: v0.08010~150^2~51^2~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d9a965b230ddf414241ff3235c31be28ba366b4;p=dbsrgits%2FDBIx-Class.git dt test --- diff --git a/t/96multi_create.t b/t/96multi_create.t index 24b5d0f..79571d3 100644 --- a/t/96multi_create.t +++ b/t/96multi_create.t @@ -4,10 +4,11 @@ use warnings; use Test::More; use lib qw(t/lib); use DBICTest; +use DateTime; my $schema = DBICTest->init_schema(); -plan tests => 11; +plan tests => 12; my $cd2 = $schema->resultset('CD')->create({ artist => { name => 'Fred Bloggs' }, @@ -118,3 +119,9 @@ CREATE_RELATED2 :{ ok( $track && ref $track eq 'DBICTest::Track', 'Got Expected Track Class'); } } + +my $now = DateTime->now; + +ok( $schema->resultset('Event') + ->create( { starts_at => $now, created_on => $now } ), + 'object with inflated non-rels ok');