]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
Merge remote-tracking branch 'origin/manifest' into next
[public-inbox.git] / t / psgi_v2.t
index 65448dc435a3d9925942233c60f4fd98e3243d72..5c358cdecb591720c785cce6ecc6a8fd1a718c96 100644 (file)
@@ -3,6 +3,8 @@
 use strict;
 use warnings;
 use Test::More;
+require './t/common.perl';
+require_git(2.6);
 use File::Temp qw/tempdir/;
 use PublicInbox::MIME;
 use PublicInbox::Config;
@@ -200,6 +202,8 @@ test_psgi(sub { $www->call(@_) }, sub {
 
        $res = $cb->(GET('/v2test/0/info/refs'));
        is($res->code, 200, 'got info refs for dumb clones');
+       $res = $cb->(GET('/v2test/0.git/info/refs'));
+       is($res->code, 200, 'got info refs for dumb clones w/ .git suffix');
        $res = $cb->(GET('/v2test/info/refs'));
        is($res->code, 404, 'unpartitioned git URL fails');