[Rt-commit] r16218 - in rt/branches/3.999-DANGEROUS: t/api

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Oct 6 10:39:38 EDT 2008


Author: sunnavy
Date: Mon Oct  6 10:39:37 2008
New Revision: 16218

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/t/api/rights.t

Log:
 r17035 at sunnavys-mb:  sunnavy | 2008-10-06 21:54:14 +0800
 tiny test fix


Modified: rt/branches/3.999-DANGEROUS/t/api/rights.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/api/rights.t	(original)
+++ rt/branches/3.999-DANGEROUS/t/api/rights.t	Mon Oct  6 10:39:37 2008
@@ -98,7 +98,7 @@
 my $ticket = RT::Model::Ticket->new(current_user => RT->system_user);
 my ($ticket_id) = $ticket->create( queue => $queue_id, subject => 'test');
 ok( $ticket_id, 'new ticket Created' );
-is( $ticket->owner, RT->nobody->id, 'owner of the new ticket is nobody' );
+is( $ticket->owner->id, RT->nobody->id, 'owner of the new ticket is nobody' );
 
 my $status;
 ($status, $msg) = $user->principal->grant_right( object => $queue, right => 'OwnTicket' );
@@ -107,7 +107,7 @@
 
 ($status, $msg) = $ticket->set_owner( $user_id );
 ok( $status, "successfuly set owner: $msg" );
-is( $ticket->owner, $user_id, "set correct owner" );
+is( $ticket->owner->id, $user_id, "set correct owner" );
 
 ok( $user->has_right( right => 'ReplyToTicket', object => $ticket ), "user is owner and can reply to ticket" );
 


More information about the Rt-commit mailing list