diff options
Diffstat (limited to 't/repobrowse_git_commit.t')
-rw-r--r-- | t/repobrowse_git_commit.t | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/t/repobrowse_git_commit.t b/t/repobrowse_git_commit.t index ed2d6d56..f5913023 100644 --- a/t/repobrowse_git_commit.t +++ b/t/repobrowse_git_commit.t @@ -8,24 +8,12 @@ test_psgi($test->{app}, sub { my ($cb) = @_; my $path = '/path/to/something'; my $req = 'http://example.com/test.git/commit'; - my $res = $cb->(GET($req . $path)); - is($res->code, 301, 'got 301 to anchor'); - is($res->header('Location'), "$req#path:to:something", - 'redirected to anchor from path'); - - my $q = '?id=deadbeef'; - $res = $cb->(GET($req . $path . $q)); - is($res->code, 301, 'got 301 with query string'); - is($res->header('Location'), "$req$q#path:to:something", - 'redirected to anchor from path with query'); + my $res; $res = $cb->(GET($req)); is($res->code, 200, 'got proper 200 response for default'); my $body = dechunk($res); like($body, qr!</html>\z!, 'response body finished'); - - $res = $cb->(GET($req.$q)); - is($res->code, 404, 'got 404 response for bad id'); }); done_testing(); |