diff options
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']); |