X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fpsgi_mount.t;h=7c5487f3f99ca9e1bacaafb37863bdeb786d1553;hp=e9547c15f3f41ba893c1407441a32f689a9120ca;hb=5b96edcb1e0d825244d5a12470e0f32526262611;hpb=b587bfbcbff710dc9667af85be6a2a619f918273 diff --git a/t/psgi_mount.t b/t/psgi_mount.t index e9547c15..7c5487f3 100644 --- a/t/psgi_mount.t +++ b/t/psgi_mount.t @@ -48,14 +48,9 @@ test_psgi($app, sub { unlike($res->content, qr!\b\Qhttp://[^/]+/test/\E!, 'No URLs which are not mount-aware'); - $res = $cb->(GET('/a/test/new.html')); - like($res->content, qr!git clone --mirror http://[^/]+/a/test\b!, - 'clone URL in new.html is mount-aware'); - - $res = $cb->(GET('/a/test/blah%40example.com/')); - is($res->code, 200, 'OK with URLMap mount'); - like($res->content, qr!git clone --mirror http://[^/]+/a/test\b!, - 'clone URL in /$INBOX/$MESSAGE_ID/ is mount-aware'); + $res = $cb->(GET('/a/test/_/text/mirror/')); + like($res->content, qr!git clone --mirror\s+.*?http://[^/]+/a/test\b!s, + 'clone URL in /text/mirror is mount-aware'); $res = $cb->(GET('/a/test/blah%40example.com/raw')); is($res->code, 200, 'OK with URLMap mount');