added lines_from_command util
[scpubgit/System-Introspector.git] / t / groups.t
CommitLineData
9daad8a7 1use strictures 1;
2use Test::More;
3
4use System::Introspector::Groups;
5
6my $probe = System::Introspector::Groups->new;
7my $data = $probe->gather;
8
9ok scalar(keys %$data), 'received group data';
10ok not(grep { not defined $_->{gid} } values %$data), 'all have gid';
11ok not(grep { not defined $_->{name} } values %$data), 'all have name';
12ok not(grep { not defined $_->{users} } values %$data), 'all have users';
13
14done_testing;