[Rt-commit] r19006 - rt/3.999/trunk/t/api

ruz at bestpractical.com ruz at bestpractical.com
Tue Mar 31 16:14:16 EDT 2009


Author: ruz
Date: Tue Mar 31 16:14:15 2009
New Revision: 19006

Modified:
   rt/3.999/trunk/t/api/groups.t

Log:
* adjust t/api/groups.t according to the latest changes

Modified: rt/3.999/trunk/t/api/groups.t
==============================================================================
--- rt/3.999/trunk/t/api/groups.t	(original)
+++ rt/3.999/trunk/t/api/groups.t	Tue Mar 31 16:14:15 2009
@@ -89,7 +89,7 @@
 *RTx::System::id = sub  { 1; };
 *RTx::System::id = *RTx::System::id;
 my $ace = RT::Model::ACE->new(current_user => RT->system_user);
-($id, $msg) = $ace->RT::Record::create( principal => $RTxGroup->id, type => 'Group', right_name => 'RTxGroupRight', object_type => 'RTx::System', object_id  => 1);
+($id, $msg) = $ace->RT::Record::create( principal => $RTxGroup->id, right_name => 'RTxGroupRight', object_type => 'RTx::System', object_id  => 1);
 ok ($id, "ACL for RTxSysObj Created");
 
 my $RTxObj = {};
@@ -111,7 +111,7 @@
 
 use RT::Model::ACE;
 $ace = RT::Model::ACE->new(current_user => RT->system_user);
-($id, $msg) = $ace->RT::Record::create( principal => $RTxGroup->id, type => 'Group', right_name => 'RTxGroupRight', object_type => 'RTx::System::Record', object_id  => 5 );
+($id, $msg) = $ace->RT::Record::create( principal => $RTxGroup->id, right_name => 'RTxGroupRight', object_type => 'RTx::System::Record', object_id  => 5 );
 ok ($id, "ACL for RTxObj Created");
 
 my $RTxObj2 = {};


More information about the Rt-commit mailing list