summaryrefslogtreecommitdiffstats
path: root/t/Nagios-Plugin-01.t
diff options
context:
space:
mode:
authorGavin Carr <gonzai@users.sourceforge.net>2006-10-04 22:02:39 +0000
committerGavin Carr <gonzai@users.sourceforge.net>2006-10-04 22:02:39 +0000
commite63887eda6765e1059939ff9c89e4fb244b5819b (patch)
tree3ae2b11db96535bdbd7a8da60fde642a8fd80619 /t/Nagios-Plugin-01.t
parent579fdad51ca7c1d306ba040954864216b0e07050 (diff)
downloadmonitoring-plugin-perl-e63887eda6765e1059939ff9c89e4fb244b5819b.tar.gz
Fix NP shortname defaulting; downgrade version requirements.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1489 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 't/Nagios-Plugin-01.t')
-rw-r--r--t/Nagios-Plugin-01.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/Nagios-Plugin-01.t b/t/Nagios-Plugin-01.t
index 0ae2113..9de5009 100644
--- a/t/Nagios-Plugin-01.t
+++ b/t/Nagios-Plugin-01.t
@@ -1,3 +1,4 @@
1# Nagios::Plugin original test cases
1 2
2use strict; 3use strict;
3use Test::More tests => 12; 4use Test::More tests => 12;
@@ -17,7 +18,7 @@ $p->shortname("PAGESIZE");
17is($p->shortname, "PAGESIZE", "shortname set correctly"); 18is($p->shortname, "PAGESIZE", "shortname set correctly");
18 19
19$p = Nagios::Plugin->new; 20$p = Nagios::Plugin->new;
20ok(! defined $p->shortname, "shortname should be unset on new"); 21is($p->shortname, "NAGIOS-PLUGIN-01", "shortname should default on new");
21 22
22$p = Nagios::Plugin->new( shortname => "SIZE" ); 23$p = Nagios::Plugin->new( shortname => "SIZE" );
23is($p->shortname, "SIZE", "shortname set correctly on new"); 24is($p->shortname, "SIZE", "shortname set correctly on new");