9 $ENV{GITALIST_CONFIG} = $Bin;
10 $ENV{GITALIST_REPO_DIR} = '';
11 use_ok 'Catalyst::Test', 'Gitalist';
16 repo1 nodescription bare.git opml search
17 fragment/collectionofrepositories
20 ok( request($path)->is_success, "$path should succeed");
23 my $response = request('/DoesNotExist');
24 is $response->code, 404, 'invalid repository 404s';
25 like $response->content, qr/Page not found/, 'invalid repository handled correctly';
28 local *test = curry_test_uri('fragment/repo1');
34 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818');
35 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree');
36 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree/dir1');
37 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff');
38 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff/plain');
39 #test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/shortlog/dir1');
40 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/history/dir1');
41 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blame/file1');
42 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blob/file1');
47 local *test = curry_test_uri('repo1');
53 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818');
54 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/tree');
55 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/diff');
56 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patch');
57 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patches/1');
58 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/patches/2');
59 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/history/dir1');
60 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blame/file1');
61 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/raw/file1');
62 test('36c6c6708b8360d7023e8a1649c45bcf9b3bd818/blob/file1');
65 local $TODO = "FIXME";
66 test('search', 'type=commit&text=added');
68 # FIXME - What's the difference here?
69 #test('patch', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e');
70 #test('patch', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e;hp=3bc0634310b9c62222bb0e724c11ffdfb297b4ac');
71 #test('patches', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e');
72 #test('patches', 'h=3f7567c7bdf7e7ebf410926493b92d398333116e;hp=3bc0634310b9c62222bb0e724c11ffdfb297b4ac');