9 $ENV{GITALIST_CONFIG} = $Bin;
10 $ENV{GITALIST_REPO_DIR} = '';
11 use_ok 'Catalyst::Test', 'Gitalist';
15 for my $p ('', qw/ repo1 nodescription bare.git opml /) {
17 ok( request($path)->is_success, "$path should succeed");
20 my $response = request('/DoesNotExist');
21 is $response->code, 404, 'invalid repository 404s';
22 like $response->content, qr/Page not found/, 'invalid repository handled correctly';
27 local *test = curry_test_uri('repo1');
32 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818');
33 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree');
34 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff');
35 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patch');
36 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patches/1');
37 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patches/2');
38 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/history/dir1');
39 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blame/file1');
40 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/raw/file1');
41 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blob/file1');
44 local $TODO = "FIXME";
45 test('search', 'type=commit&text=added');
47 # FIXME - What's the difference here?
48 #test('patch', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e');
49 #test('patch', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e;hp=3bc0634310b9c62222bb0e724c11ffdfb297b4ac');
50 #test('patches', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e');
51 #test('patches', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e;hp=3bc0634310b9c62222bb0e724c11ffdfb297b4ac');