there is now a 'package' key below 'installed' to be able to detect 'error'
Robert 'phaylon' Sedlacek [Wed, 9 May 2012 22:09:22 +0000 (22:09 +0000)]
t/packages-apt.t

index ac30cb8..f96d685 100644 (file)
@@ -8,7 +8,9 @@ my $data  = $probe->gather;
 
 ok(scalar(keys %$data), 'received packages');
 ok(
-    not(grep { not exists $_->{version} } values %{$data->{installed}}),
+    not(grep {
+        not exists $_->{version}
+    } values %{$data->{installed}{packages}}),
     'versions',
 );