Summary fails on empty repositories, failing test..
[catagits/Gitalist.git] / t / 01app.t
1 #!/usr/bin/env perl
2 use strict;
3 use warnings;
4 use Test::More;
5 use FindBin qw/$Bin/;
6
7 BEGIN {
8     $ENV{GITALIST_CONFIG} = $Bin;
9     use_ok 'Catalyst::Test', 'Gitalist'
10 }
11
12 ok( request('/')->is_success, 'Request should succeed' );
13 for my $p (qw/ bare.git repo1 nodescription /) {
14     my $path = '/summary?p=' . $p;
15     ok( request($path)->is_success, "$path should succeed");
16 }
17
18 done_testing;
19