about summary refs log tree commit homepage
path: root/t/config.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-11 21:08:50 +0000
committerEric Wong <e@80x24.org>2014-04-11 22:24:30 +0000
commit6d2a5e604d689b33586c653d8a04473e33973ac6 (patch)
tree0931a5692561a871ecd86cf92c7c94702141c520 /t/config.t
parent8add30044d04c1feccc00a3c5b8f9a0f75c64bf5 (diff)
downloadpublic-inbox-6d2a5e604d689b33586c653d8a04473e33973ac6.tar.gz
This makes it possible to gradually migrate to new address in case
of list name changes, and is one step closer to operating in
"stealth hijack mode" :)
Diffstat (limited to 't/config.t')
-rw-r--r--t/config.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/config.t b/t/config.t
index 44e051f2..cd61fe09 100644
--- a/t/config.t
+++ b/t/config.t
@@ -34,6 +34,16 @@ my $tmpdir = tempdir(CLEANUP => 1);
 
         is($cfg->lookup('blah@example.com'), undef,
                 "non-existent lookup returns undef");
+
+        my $test = $cfg->lookup('test@public-inbox.org');
+        is_deeply($test, {
+                'address' => ['try@public-inbox.org',
+                              'sandbox@public-inbox.org',
+                              'test@public-inbox.org'],
+                'mainrepo' => '/home/pi/test-main.git',
+                'description' => 'test/sandbox area, occasionally reset',
+                'listname' => 'test',
+        }, "lookup matches expected output for test");
 }
 
 done_testing();