From e63887eda6765e1059939ff9c89e4fb244b5819b Mon Sep 17 00:00:00 2001 From: Gavin Carr Date: Wed, 4 Oct 2006 22:02:39 +0000 Subject: 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 --- t/Nagios-Plugin-01.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't/Nagios-Plugin-01.t') 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 @@ +# Nagios::Plugin original test cases use strict; use Test::More tests => 12; @@ -17,7 +18,7 @@ $p->shortname("PAGESIZE"); is($p->shortname, "PAGESIZE", "shortname set correctly"); $p = Nagios::Plugin->new; -ok(! defined $p->shortname, "shortname should be unset on new"); +is($p->shortname, "NAGIOS-PLUGIN-01", "shortname should default on new"); $p = Nagios::Plugin->new( shortname => "SIZE" ); is($p->shortname, "SIZE", "shortname set correctly on new"); -- cgit v1.2.3-74-g34f1