about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-08-12 02:15:55 +0000
committerEric Wong <e@80x24.org>2016-08-12 02:19:53 +0000
commitb0f783fe601cfcaf89b30de461a540434f63b3ee (patch)
tree15ef236f068799dd574eb67add2afd5a809a253d /t
parent58a5bb3e18901237b1ca34ef8f03f696be27d305 (diff)
downloadpublic-inbox-b0f783fe601cfcaf89b30de461a540434f63b3ee.tar.gz
Oops.  We will inevitably need to support multiple altids for a
public-inbox one day.
Diffstat (limited to 't')
-rw-r--r--t/config.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/config.t b/t/config.t
index 77e8f4ac..073d1d03 100644
--- a/t/config.t
+++ b/t/config.t
@@ -50,4 +50,17 @@ my $tmpdir = tempdir('pi-config-XXXXXX', TMPDIR => 1, CLEANUP => 1);
         }, "lookup matches expected output for test");
 }
 
+
+{
+        my $cfgpfx = "publicinbox.test";
+        my @altid = qw(serial:gmane:file=a serial:enamg:file=b);
+        my $config = PublicInbox::Config->new({
+                "$cfgpfx.address" => 'test@example.com',
+                "$cfgpfx.mainrepo" => '/path/to/non/existent',
+                "$cfgpfx.altid" => [ @altid ],
+        });
+        my $ibx = $config->lookup_name('test');
+        is_deeply($ibx->{altid}, [ @altid ]);
+}
+
 done_testing();