aboutsummaryrefslogtreecommitdiff
path: root/t/config.t
diff options
context:
space:
mode:
Diffstat (limited to 't/config.t')
-rw-r--r--t/config.t12
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');

Return to:

Send suggestions and report system problems to the System administrator.