Merge in master changes.
[catagits/Gitalist.git] / t / 01app.t
1 #!/usr/bin/env perl
2 use strict;
3 use warnings;
4 use Test::More tests => 2;
5
6 BEGIN { use_ok 'Catalyst::Test', 'Gitalist' }
7
8 # Full tests are only run if the APP_TEST env var is set.
9 # This is needed to load the test configuration.
10 diag("*** SKIPPING app tests.
11 *** Set APP_TEST for the tests to run fully") if !$ENV{APP_TEST};
12 SKIP: {
13   skip "Set APP_TEST for the tests to run fully",
14     1 if !$ENV{APP_TEST};
15
16 ok( request('/')->is_success, 'Request should succeed' );
17
18 } # Close APP_TEST skip