[Rt-commit] r9748 - in rt/branches/3.999-DANGEROUS: lib
lib/RT/Model t/api
jesse at bestpractical.com
jesse at bestpractical.com
Mon Nov 26 14:12:12 EST 2007
Author: jesse
Date: Mon Nov 26 14:12:10 2007
New Revision: 9748
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/lib/ (props changed)
rt/branches/3.999-DANGEROUS/lib/RT/Model/UserCollection.pm
rt/branches/3.999-DANGEROUS/t/api/users.t
Log:
r72350 at pinglin: jesse | 2007-11-26 14:10:20 -0500
* minor cleanup
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/UserCollection.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/UserCollection.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/UserCollection.pm Mon Nov 26 14:12:10 2007
@@ -70,9 +70,6 @@
# {{{ sub _init
sub _init {
my $self = shift;
- $self->{'table'} = 'Users';
- $self->{'primary_key'} = 'id';
-
my @result = $self->SUPER::_init(@_);
Modified: rt/branches/3.999-DANGEROUS/t/api/users.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/api/users.t (original)
+++ rt/branches/3.999-DANGEROUS/t/api/users.t Mon Nov 26 14:12:10 2007
@@ -12,6 +12,8 @@
ok(my $users = RT::Model::UserCollection->new(RT->system_user));
$users->WhoHaveRight(Object =>RT->system, Right =>'SuperUser');
is($users->count , 1, "There is one privileged superuser - Found ". $users->count );
+
+
# TODO: this wants more testing
my $RTxUser = RT::Model::User->new(RT->system_user);
More information about the Rt-commit
mailing list