]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
www: support cloning individual v2 git partitions
[public-inbox.git] / t / psgi_v2.t
index 2a798d6fe40e373b935e06d14bd9ea6a0b0fff3c..9964b47762abce93e83d3749340e5c798d1c89f5 100644 (file)
@@ -165,6 +165,11 @@ test_psgi(sub { $www->call(@_) }, sub {
        $res = $cb->(GET('/v2test/reuse@mid/t/'));
        $raw = $res->content;
        like($raw, qr/\b4\+ messages\b/, 'thread overview shown with /t/');
+
+       $res = $cb->(GET('/v2test/0/info/refs'));
+       is($res->code, 200, 'got info refs for dumb clones');
+       $res = $cb->(GET('/v2test/info/refs'));
+       is($res->code, 404, 'unpartitioned git URL fails');
 });
 
 done_testing();