[Jifty-commit] r6220 - in jifty/trunk: t/TestApp-Plugin-ActorMetadata/t

Jifty commits jifty-commit at lists.jifty.org
Fri Jan 9 07:23:42 EST 2009


Author: sunnavy
Date: Fri Jan  9 07:23:39 2009
New Revision: 6220

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/t/TestApp-Plugin-ActorMetadata/t/actormetadata.t

Log:
 r6236 at sunnavys-mb:  sunnavy | 2009-01-09 20:23:13 +0800
 fix stupid parens


Modified: jifty/trunk/t/TestApp-Plugin-ActorMetadata/t/actormetadata.t
==============================================================================
--- jifty/trunk/t/TestApp-Plugin-ActorMetadata/t/actormetadata.t	(original)
+++ jifty/trunk/t/TestApp-Plugin-ActorMetadata/t/actormetadata.t	Fri Jan  9 07:23:39 2009
@@ -38,10 +38,8 @@
 is( $post->created_on->epoch, $created_on->epoch, 'created_on is not updated' );
 
 is( $post->updated_by, $user_foo->id, 'updated_by is not updated' );
-
-ok( abs( $post->updated_on->epoch - Jifty::DateTime->now->epoch < 2 ),
+ok( abs( $post->updated_on->epoch - Jifty::DateTime->now->epoch ) < 1 ,
     'update_on is updated correctly' );
-
 sleep 3;
 # update by bar
 $post->current_user($user_bar);
@@ -52,5 +50,5 @@
 is( $post->created_on->epoch, $created_on->epoch, 'created_on is not updated' );
 
 is( $post->updated_by, $user_bar->id, 'updated_by is not updated' );
-ok( abs( $post->updated_on->epoch - Jifty::DateTime->now->epoch < 2 ),
+ok( abs( $post->updated_on->epoch - Jifty::DateTime->now->epoch ) < 2,
     'update_on is updated' );


More information about the Jifty-commit mailing list