Make the app testing work by default by pointing it at different config
[catagits/Gitalist.git] / t / 01app.t
index 0be3710..430ab3e 100644 (file)
--- a/t/01app.t
+++ b/t/01app.t
@@ -1,18 +1,15 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use Test::More tests => 2;
+use Test::More;
+use FindBin qw/$Bin/;
 
-BEGIN { use_ok 'Catalyst::Test', 'Gitalist' }
-
-# Full tests are only run if the APP_TEST env var is set.
-# This is needed to load the test configuration.
-diag("*** SKIPPING app tests.
-*** Set APP_TEST for the tests to run fully") if !$ENV{APP_TEST};
-SKIP: {
-  skip "Set APP_TEST for the tests to run fully",
-    1 if !$ENV{APP_TEST};
+BEGIN {
+    $ENV{GITALIST_CONFIG} = $Bin;
+    use_ok 'Catalyst::Test', 'Gitalist'
+}
 
 ok( request('/')->is_success, 'Request should succeed' );
 
-} # Close APP_TEST skip
+done_testing;
+