$data->{crontab} = transform_exceptions {
$self->_gather_crontab($user);
};
- $user{ $data->{uid} } = $data;
+ $user{ $data->{username} } = $data;
}
return { users => \%user };
};
my $probe = System::Introspector::Users->new;
my $data = $probe->gather;
-ok((my $user = $data->{users}{ $> }), 'found own user');
+ok((my $user = $data->{users}{ +getlogin }), 'found own user');
ok(defined($user->{ $_ }), "$_ is defined")
for qw( comment crontab gid groups home shell ssh uid username );
ok(not(exists $user->{crontab}{error}), 'no crontab error');