diff options
author | Eric Wong <e@80x24.org> | 2017-01-21 11:34:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-21 11:40:03 +0000 |
commit | 5027b5fad0aa4a448e53eeba4027328dd528c918 (patch) | |
tree | 5fa098eab1e790e83651cc2ec91f9e726a76f1e0 /t | |
parent | a195b2a2195a27110df055153105743b80746b36 (diff) | |
download | public-inbox-5027b5fad0aa4a448e53eeba4027328dd528c918.tar.gz |
Based on what was done for the Atom feed, this will allow us to simplify state management through metaprogramming and avoid placeholder characters ('D' for decoration) for empty fields.
Diffstat (limited to 't')
-rw-r--r-- | t/repobrowse_git_log.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/repobrowse_git_log.t b/t/repobrowse_git_log.t new file mode 100644 index 00000000..86338698 --- /dev/null +++ b/t/repobrowse_git_log.t @@ -0,0 +1,19 @@ +# Copyright (C) 2017 all contributors <meta@public-inbox.org> +# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> +use strict; +use warnings; +my $test = require './t/repobrowse_common_git.perl'; +use Test::More; + +test_psgi($test->{app}, sub { + my ($cb) = @_; + my $req = 'http://example.com/test.git/log'; + my $res = $cb->(GET($req)); + is($res->code, 200, 'got 200'); + is($res->header('Content-Type'), 'text/html', + 'got correct Content-Type'); + my $body = dechunk($res); + like($body, qr!</html>!, 'valid HTML :)'); +}); + +done_testing(); |