about summary refs log tree commit homepage
path: root/t/repobrowse_git_plain.t
diff options
context:
space:
mode:
Diffstat (limited to 't/repobrowse_git_plain.t')
-rw-r--r--t/repobrowse_git_plain.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/repobrowse_git_plain.t b/t/repobrowse_git_plain.t
index 27347f70..a93fa10e 100644
--- a/t/repobrowse_git_plain.t
+++ b/t/repobrowse_git_plain.t
@@ -7,11 +7,12 @@ my $test = require './t/repobrowse_common_git.perl';
 test_psgi($test->{app}, sub {
         my ($cb) = @_;
 
-        my $req = 'http://example.com/test.git/plain/dir';
+        my $req = 'http://example.com/test.git/plain/master/dir';
         my $res = $cb->(GET($req));
         is(200, $res->code, 'got 200 response from dir');
         my $noslash_body = dechunk($res);
-        like($noslash_body, qr{href="dir/dur">dur</a></li>}, 'path ok w/o slash');
+        like($noslash_body, qr{href="dir/dur">dur</a></li>},
+                'path ok w/o slash');
 
         my $slash = $req . '/';
         my $r2 = $cb->(GET($slash));
@@ -19,7 +20,7 @@ test_psgi($test->{app}, sub {
         my $slash_body = dechunk($r2);
         like($slash_body, qr{href="\./dur\">dur</a></li>}, 'path ok w/ slash');
 
-        $req = 'http://example.com/test.git/plain/foo.txt';
+        $req = 'http://example.com/test.git/plain/master/foo.txt';
         my $blob = $cb->(GET($req));
         like($blob->header('Content-Type'), qr!\Atext/plain\b!,
                 'got text/plain blob');