Merge branch 'bug_9734' into 3.12-master
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 11 Mar 2013 11:33:33 +0000 (07:33 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 11 Mar 2013 11:33:33 +0000 (07:33 -0400)
C4/Installer/PerlDependencies.pm
t/Installer_PerlModules.t

index 41fa8db..83ba962 100644 (file)
@@ -631,7 +631,7 @@ our $PERL_DEPS = {
       },
     'String::Random' => {
         'usage'    => 'OpacSelfRegistration',
-        'required' => '0',
+        'required' => '1',
         'min_ver'  => '0.22',
     },
 };
index f64ed85..c3ed715 100755 (executable)
@@ -6,7 +6,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 15;
+use Test::More tests => 16;
 
 BEGIN {
         use_ok('C4::Installer::PerlModules');
@@ -35,3 +35,4 @@ ok ($modules->module_count() >10 , 'count should be greater than 10');
 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');