]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
www: serve $INBOX_DIR/description as $INBOX_URL/description
[public-inbox.git] / t / psgi_v2.t
index 2ecd7458e48eee28467194faa01f14161449397e..fdd6969f8034322a4e2fcffde8e5627e6d164c7d 100644 (file)
@@ -58,6 +58,9 @@ my $www = PublicInbox::WWW->new($config);
 my ($res, $raw, @from_);
 test_psgi(sub { $www->call(@_) }, sub {
        my ($cb) = @_;
+       $res = $cb->(GET('/v2test/description'));
+       like($res->content, qr!\$INBOX_DIR/description missing!,
+               'got v2 description missing message');
        $res = $cb->(GET('/v2test/a-mid@b/raw'));
        $raw = $res->content;
        like($raw, qr/^hello world$/m, 'got first message');