]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/config.t
thread: remove Email::Abstract wrapping
[public-inbox.git] / t / config.t
index 77e8f4ac18e5bd7b8b153a18326e12a5581690e6..073d1d03074db83d6054e11991910ccee7d1b66d 100644 (file)
@@ -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();