diff options
author | Brian Cully <bjc@kublai.com> | 2014-11-21 11:02:46 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2014-11-23 14:19:29 -0500 |
commit | cacbab512d4102e6db19c6487c4d291006dd0fda (patch) | |
tree | bc0e623db6b94384c9305529311148712786426c /t/conf.t | |
download | spamcat-cacbab512d4102e6db19c6487c4d291006dd0fda.tar.gz spamcat-cacbab512d4102e6db19c6487c4d291006dd0fda.zip |
Initial commit.
Diffstat (limited to 't/conf.t')
-rw-r--r-- | t/conf.t | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/conf.t b/t/conf.t new file mode 100644 index 0000000..dbe2217 --- /dev/null +++ b/t/conf.t @@ -0,0 +1,18 @@ +# -*- mode: cperl -*- + +use Test::More tests => 7; + +use strict; +use warnings; + +require_ok 'SpamCat::Conf'; + +ok(SpamCat::Conf->can('read')); +my %conf = SpamCat::Conf::read('t/fixtures/sample.conf'); +ok(%conf); + +is($conf{dbpath}, '/tmp/spamcat.sqlite3'); +is($conf{default_count}, 10); +is($conf{deliver}, 't/delivert'); +is_deeply($conf{domains}, + ['spamcat.example.com', 'spamcat2.example.com', 'spamcat3']); |