use strict; use warnings; use RT; use RT::Test tests => 7; { my $s = RT::System->new($RT::SystemUser); my $rights = $s->AvailableRights; ok ($rights, "Rights defined"); ok ($rights->{'AdminUsers'},"AdminUsers right found"); ok ($rights->{'CreateTicket'},"CreateTicket right found"); ok ($rights->{'AdminGroupMembership'},"ModifyGroupMembers right found"); ok (!$rights->{'CasdasdsreateTicket'},"bogus right not found"); } { use RT::System; my $sys = RT::System->new(); is( $sys->Id, 1); is ($sys->id, 1); } 1;