capture origin/<name> of active branch in case remote is not tracked
[scpubgit/System-Introspector.git] / t / groups.t
1 use strictures 1;
2 use Test::More;
3
4 use System::Introspector::Probe::Groups;
5
6 my $probe = System::Introspector::Probe::Groups->new;
7
8 my $result = $probe->gather;
9 ok $result, 'received data';
10 my $data = $result->{groups};
11 ok $data, 'received groups data';
12
13 ok scalar(keys %$data), 'received group data';
14 ok not(grep { not defined $_->{gid} } values %$data), 'all have gid';
15 ok not(grep { not defined $_->{name} } values %$data), 'all have name';
16 ok not(grep { not defined $_->{users} } values %$data), 'all have users';
17
18 done_testing;