diff options
Diffstat (limited to 't/Monitoring-Plugin-05.t')
-rw-r--r-- | t/Monitoring-Plugin-05.t | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/Monitoring-Plugin-05.t b/t/Monitoring-Plugin-05.t new file mode 100644 index 0000000..d17464f --- /dev/null +++ b/t/Monitoring-Plugin-05.t | |||
@@ -0,0 +1,15 @@ | |||
1 | # Check for exported vars | ||
2 | # Can't include Monitoring::Plugin::Functions because it also exports %STATUS_TEXT | ||
3 | |||
4 | use strict; | ||
5 | use Test::More tests=>4; | ||
6 | |||
7 | BEGIN { use_ok('Monitoring::Plugin') }; | ||
8 | |||
9 | eval ' $_ = $STATUS_TEXT{0} '; | ||
10 | like( $@, '/Global symbol "%STATUS_TEXT" requires explicit package name/' ); | ||
11 | |||
12 | use_ok("Monitoring::Plugin", qw(%STATUS_TEXT)); | ||
13 | |||
14 | eval ' $_ = $STATUS_TEXT{0} '; | ||
15 | is( $@, '' ); | ||