[Jifty-commit] r6237 - in jifty/trunk: t/TestApp-Plugin-ActorMetadata/t
Jifty commits
jifty-commit at lists.jifty.org
Tue Jan 13 00:20:19 EST 2009
Author: sunnavy
Date: Tue Jan 13 00:20:19 2009
New Revision: 6237
Modified:
jifty/trunk/ (props changed)
jifty/trunk/t/TestApp-Plugin-ActorMetadata/t/actormetadata.t
Log:
r6257 at sunnavys-mb: sunnavy | 2009-01-13 13:11:07 +0800
update actormetadata.t since references works
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 Tue Jan 13 00:20:19 2009
@@ -20,9 +20,8 @@
ok( $post->id, 'created a post' );
is( $post->created_by->id, $user_foo->id, 'created_by is set' );
-# XXX TODO update_by can't be refers to user :/
# see Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata
-is( $post->updated_by, $user_foo->id, 'updated_by is set' );
+is( $post->updated_by->id, $user_foo->id, 'updated_by is set' );
my $now = Jifty::DateTime->now;
my $created_on = $post->created_on;
@@ -37,7 +36,7 @@
is( $post->created_by->id, $user_foo->id, 'created_by is not updated' );
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' );
+is( $post->updated_by->id, $user_foo->id, 'updated_by is not updated' );
ok( abs( $post->updated_on->epoch - Jifty::DateTime->now->epoch ) < 1 ,
'update_on is updated correctly' );
sleep 3;
@@ -49,6 +48,6 @@
is( $post->created_by->id, $user_foo->id, 'created_by is not updated' );
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' );
+is( $post->updated_by->id, $user_bar->id, 'updated_by is not updated' );
ok( abs( $post->updated_on->epoch - Jifty::DateTime->now->epoch ) < 2,
'update_on is updated' );
More information about the Jifty-commit
mailing list