diff options
Diffstat (limited to 't/config.t')
-rw-r--r-- | t/config.t | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/config.t b/t/config.t new file mode 100644 index 0000000..d965844 --- /dev/null +++ b/t/config.t @@ -0,0 +1,12 @@ +# -*- perl -*- +use lib 't'; +use strict; +use App::Beam::Config; +use Test; + +plan(tests => 2); + +my $cfg = new App::Beam::Config('t/f.conf'); +ok($cfg->parse() && 1); +my $s = join " ", map { $_->[0] . "=" . $_->[1] } $cfg->flatten(); +ok($s, 'backend.foo.file=a core.retain-interval=10 core.tempdir=/tmp'); |