diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-02-09 22:46:55 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-02-09 22:46:55 +0100 |
commit | acfbf2e31ca353b98a0e0c01f8bfa6f90e57d410 (patch) | |
tree | 9cb9d4e4180b8f9004fb43235cb99ec0172b3f9b | |
parent | 2a77f55cc6d833d65c79af3984e8ee3ab477f4db (diff) | |
download | manatools-acfbf2e31ca353b98a0e0c01f8bfa6f90e57d410.tar manatools-acfbf2e31ca353b98a0e0c01f8bfa6f90e57d410.tar.gz manatools-acfbf2e31ca353b98a0e0c01f8bfa6f90e57d410.tar.bz2 manatools-acfbf2e31ca353b98a0e0c01f8bfa6f90e57d410.tar.xz manatools-acfbf2e31ca353b98a0e0c01f8bfa6f90e57d410.zip |
Added test Locales, and requirements in makefile
-rw-r--r-- | MANIFEST | 2 | ||||
-rw-r--r-- | Makefile.PL | 7 | ||||
-rw-r--r-- | lib/AdminPanel/Shared/Locales.pm | 2 | ||||
-rw-r--r-- | t/01-Locales.t | 14 |
4 files changed, 22 insertions, 3 deletions
@@ -39,6 +39,7 @@ lib/AdminPanel/Rpmdragora/widgets.pm lib/AdminPanel/SettingsReader.pm lib/AdminPanel/Shared.pm lib/AdminPanel/Shared/Hosts.pm +lib/AdminPanel/Shared/Locales.pm lib/AdminPanel/Shared/Services.pm lib/AdminPanel/Shared/Users.pm Makefile.PL @@ -107,6 +108,7 @@ scripts/hostmanager scripts/mgaAddUser settings.conf t/00-load.t +t/01-Locales.t t/boilerplate.t t/manifest.t t/pod-coverage.t diff --git a/Makefile.PL b/Makefile.PL index 171cd08f..ea7cd17a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -20,8 +20,11 @@ WriteMakefile( PREREQ_PM => { #'ABC' => 1.6, #'Foo::Bar::Module' => 5.0401, - "Moose" => 0, - "Config::Hosts" => 0, + "Moose" => 0, + "Config::Hosts" => 0, + # AdminPanel::Shared::Locales + "Locale::gettext" => 0, + "Text::Iconv" => 0, }, EXE_FILES => [ qw( scripts/adminMouse scripts/adminService diff --git a/lib/AdminPanel/Shared/Locales.pm b/lib/AdminPanel/Shared/Locales.pm index 261454aa..6eac37cb 100644 --- a/lib/AdminPanel/Shared/Locales.pm +++ b/lib/AdminPanel/Shared/Locales.pm @@ -27,7 +27,7 @@ perldoc AdminPanel::Shared::Locales =head1 SEE ALSO -Locale::gettext Text::iconv and gettext +Locale::gettext Text::Iconv and gettext =head1 AUTHOR diff --git a/t/01-Locales.t b/t/01-Locales.t new file mode 100644 index 00000000..59d3455d --- /dev/null +++ b/t/01-Locales.t @@ -0,0 +1,14 @@ +#!perl -T +use 5.006; +use strict; +use warnings FATAL => 'all'; +use Test::More; + +BEGIN { + use_ok( 'AdminPanel::Shared::Locales' ) || print "Locales failed!\n"; +} + +ok( my $o = AdminPanel::Shared::Locales->new({domain_name => 'test_AdminPanel_Shared_Locales'}), 'create'); +is( $o->N_("test"), 'test', 'N' ); + +done_testing; |