[Bast-commits] r6575 - in DBIx-Class/0.08/branches: .
rsrc_in_storage/t
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Tue Jun 9 22:31:55 GMT 2009
Author: ribasushi
Date: 2009-06-09 22:31:55 +0000 (Tue, 09 Jun 2009)
New Revision: 6575
Removed:
DBIx-Class/0.08/branches/dts-in-search/
Modified:
DBIx-Class/0.08/branches/rsrc_in_storage/t/89inflate_datetime.t
Log:
Todoify DT in search deflation test until after 0.09
Modified: DBIx-Class/0.08/branches/rsrc_in_storage/t/89inflate_datetime.t
===================================================================
--- DBIx-Class/0.08/branches/rsrc_in_storage/t/89inflate_datetime.t 2009-06-09 22:19:48 UTC (rev 6574)
+++ DBIx-Class/0.08/branches/rsrc_in_storage/t/89inflate_datetime.t 2009-06-09 22:31:55 UTC (rev 6575)
@@ -29,14 +29,18 @@
my $starts = $event->starts_at;
is("$starts", '2006-04-25T22:24:33', 'Correct date/time');
-ok(my $row =
- $schema->resultset('Event')->search({ starts_at => $starts })->single);
-is(eval { $row->id }, 1, 'DT in search');
+TODO: {
+ local $TODO = "We can't do this yet before 0.09" if DBIx::Class->VERSION < 0.09;
-ok($row =
- $schema->resultset('Event')->search({ starts_at => { '>=' => $starts } })->single);
-is(eval { $row->id }, 1, 'DT in search with condition');
+ ok(my $row =
+ $schema->resultset('Event')->search({ starts_at => $starts })->single);
+ is(eval { $row->id }, 1, 'DT in search');
+ ok($row =
+ $schema->resultset('Event')->search({ starts_at => { '>=' => $starts } })->single);
+ is(eval { $row->id }, 1, 'DT in search with condition');
+}
+
# create using DateTime
my $created = $schema->resultset('Event')->create({
starts_at => DateTime->new(year=>2006, month=>6, day=>18),
More information about the Bast-commits
mailing list