bug 11544: increasing test coverage for Installer_PerlModules.pm
authoralex_h <dhorsman@xtra.co.nz>
Tue, 14 Jan 2014 01:18:46 +0000 (14:18 +1300)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 14 Jan 2014 21:48:43 +0000 (21:48 +0000)
To test
1. run prove t/Installer_PerlModules.t
2. apply patch
3. run prove t/Installer_PerlModules.t
   notices more tests are run

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Adds another passing test.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tests pass :)

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/Installer_PerlModules.t

index c3ed715..1d5a00c 100755 (executable)
@@ -6,7 +6,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 16;
+use Test::More tests => 17;
 
 BEGIN {
         use_ok('C4::Installer::PerlModules');
@@ -36,3 +36,4 @@ my @module_list = $modules->module_list;
 %params = map { $_ => 1 } @module_list;
 ok (exists($params{"DBI"}), 'DBI exists in array');
 is ($modules->required('module'=>"String::Random"),1, 'String::Random should return 1 since required');
+ok (!$modules->version_info(), "Testing empty modules");