8 $ENV{GITALIST_CONFIG} = $Bin;
9 use_ok 'Catalyst::Test', 'Gitalist'
12 ok( request('/')->is_success, 'Request should succeed' );
14 for my $p (qw/ repo1 nodescription /) {
15 my $path = '/summary?p=' . $p;
16 ok( request($path)->is_success, "$path should succeed");
19 is request('/summary?p=DoesNotExist')->code, 404,
20 '/summary?p=DoesNotExist 404s';
23 local *test = curry_test_uri('repo1');
28 test('/commitdiff', 'h=36c6c6708b8360d7023e8a1649c45bcf9b3bd818');
29 test('/tree', 'h=145dc3ef5d307be84cb9b325d70bd08aeed0eceb;hb=36c6c6708b8360d7023e8a1649c45bcf9b3bd818');
35 my ($p, $uri, $qs) = @_;
37 my $request = "$uri?p=repo1;$qs";
38 my $response = request($request);
39 ok($response->is_success, "ok $p - $uri");
46 test_uri($p, $uri, $qs);