diff options
Diffstat (limited to 't/conf04.t')
-rw-r--r-- | t/conf04.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/conf04.t b/t/conf04.t new file mode 100644 index 0000000..ab4c12a --- /dev/null +++ b/t/conf04.t | |||
@@ -0,0 +1,17 @@ | |||
1 | # -*- perl -*- | ||
2 | use lib qw(t lib); | ||
3 | use strict; | ||
4 | use Test; | ||
5 | use ConfigSpec; | ||
6 | |||
7 | plan(tests => 1); | ||
8 | |||
9 | my $c = new ConfigSpec(expect => ['not an absolute pathname', | ||
10 | 'mandatory variable "load.file" not set']); | ||
11 | ok($c->errors() == 2); | ||
12 | |||
13 | __DATA__ | ||
14 | [core] | ||
15 | |||
16 | [load] | ||
17 | file = test | ||