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

ruz at bestpractical.com ruz at bestpractical.com
Tue Mar 31 15:47:39 EDT 2009


Author: ruz
Date: Tue Mar 31 15:47:38 2009
New Revision: 19005

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

Log:
* adjust test according to the latest changes

Modified: rt/3.999/trunk/t/api/users.t
==============================================================================
--- rt/3.999/trunk/t/api/users.t	(original)
+++ rt/3.999/trunk/t/api/users.t	Tue Mar 31 15:47:38 2009
@@ -27,7 +27,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 => $group->id, type => 'Group', right_name => 'RTxUserright', object_type => 'RTx::System', object_id  => 1 );
+($id, $msg) = $ace->RT::Record::create( principal => $group->id, right_name => 'RTxUserright', object_type => 'RTx::System', object_id  => 1 );
 ok ($id, "ACL for RTxSysObj Created");
 
 my $RTxObj = {};
@@ -48,7 +48,7 @@
 is($users->count, 1, "RTxUserright found for RTxObj using equiv_objects");
 
 $ace = RT::Model::ACE->new(current_user => RT->system_user);
-($id, $msg) = $ace->RT::Record::create( principal => $group->id, type => 'Group', right_name => 'RTxUserright', object_type => 'RTx::System::Record', object_id => 5 );
+($id, $msg) = $ace->RT::Record::create( principal => $group->id, right_name => 'RTxUserright', object_type => 'RTx::System::Record', object_id => 5 );
 ok ($id, "ACL for RTxObj Created");
 
 my $RTxObj2 = {};


More information about the Rt-commit mailing list