diff options
author | Eric Wong <e@80x24.org> | 2014-04-11 21:08:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-11 22:24:30 +0000 |
commit | 6d2a5e604d689b33586c653d8a04473e33973ac6 (patch) | |
tree | 0931a5692561a871ecd86cf92c7c94702141c520 /t/config.t | |
parent | 8add30044d04c1feccc00a3c5b8f9a0f75c64bf5 (diff) | |
download | public-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.t | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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(); |