[Bast-commits] r9415 - in trunk/DBIx-Class-TimeStamp: . t
jshirley at dev.catalyst.perl.org
jshirley at dev.catalyst.perl.org
Sat May 22 01:20:16 GMT 2010
Author: jshirley
Date: 2010-05-22 02:20:15 +0100 (Sat, 22 May 2010)
New Revision: 9415
Modified:
trunk/DBIx-Class-TimeStamp/Makefile.PL
trunk/DBIx-Class-TimeStamp/t/05datetime.t
trunk/DBIx-Class-TimeStamp/t/06timestamp.t
trunk/DBIx-Class-TimeStamp/t/07date.t
Log:
Fixing RT tickets for second resolution and support for Test::More
Modified: trunk/DBIx-Class-TimeStamp/Makefile.PL
===================================================================
--- trunk/DBIx-Class-TimeStamp/Makefile.PL 2010-05-21 13:02:39 UTC (rev 9414)
+++ trunk/DBIx-Class-TimeStamp/Makefile.PL 2010-05-22 01:20:15 UTC (rev 9415)
@@ -14,6 +14,9 @@
build_requires 'Time::HiRes';
build_requires 'Time::Warp';
+resources 'license' => 'http://dev.perl.org/licenses/';
+resources 'repository' => 'http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class-TimeStamp/';
+
postamble(<<"EOM") if $Module::Install::AUTHOR;
t/sql/test.sqlite.sql: t/lib/DBIC/Test/Schema.pm t/lib/DBIC/Test/Schema/*.pm
\t\$(MKPATH) t/sql
Modified: trunk/DBIx-Class-TimeStamp/t/05datetime.t
===================================================================
--- trunk/DBIx-Class-TimeStamp/t/05datetime.t 2010-05-21 13:02:39 UTC (rev 9414)
+++ trunk/DBIx-Class-TimeStamp/t/05datetime.t 2010-05-22 01:20:15 UTC (rev 9415)
@@ -26,7 +26,7 @@
my $time = $row->t_updated;
ok $row->t_created, 'created timestamp';
-is $row->t_updated, $row->t_created, 'update and create timestamp';
+is $row->t_updated->strftime('%a, %d %b %Y %H:%M'), $row->t_created->strftime('%a, %d %b %Y %H:%M'), 'update and create timestamp';
to(time + 60);
Modified: trunk/DBIx-Class-TimeStamp/t/06timestamp.t
===================================================================
--- trunk/DBIx-Class-TimeStamp/t/06timestamp.t 2010-05-21 13:02:39 UTC (rev 9414)
+++ trunk/DBIx-Class-TimeStamp/t/06timestamp.t 2010-05-22 01:20:15 UTC (rev 9415)
@@ -25,12 +25,12 @@
my $time = $row->t_updated;
ok $row->t_created, 'created timestamp';
-is $row->t_updated, $row->t_created, 'update and create timestamp';
+is $row->t_updated->strftime('%a, %d %b %Y %H:%M'), $row->t_created->strftime('%a, %d %b %Y %H:%M'), 'update and create timestamp';
to(time + 60);
$row->display_name('test record again');
$row->update;
-isnt $row->t_updated, $time, 'update timestamp';
+isnt $row->t_updated, $time, 'update timestamp';
Modified: trunk/DBIx-Class-TimeStamp/t/07date.t
===================================================================
--- trunk/DBIx-Class-TimeStamp/t/07date.t 2010-05-21 13:02:39 UTC (rev 9414)
+++ trunk/DBIx-Class-TimeStamp/t/07date.t 2010-05-22 01:20:15 UTC (rev 9415)
@@ -25,7 +25,7 @@
my $time = $row->t_updated;
ok $row->t_created, 'created timestamp';
-is $row->t_updated, $row->t_created, 'update and create timestamp';
+is $row->t_updated->strftime('%a, %d %b %Y %H:%M'), $row->t_created->strftime('%a, %d %b %Y %H:%M'), 'update and create timestamp';
to(time + 60);
More information about the Bast-commits
mailing list