summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/02-registration.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/02-registration.t b/t/02-registration.t
index b8fb51e..efa0b8a 100644
--- a/t/02-registration.t
+++ b/t/02-registration.t
@@ -12,6 +12,10 @@ require "$FindBin::Bin/../index.pl";
my $t = Test::Mojo->new('Travelynx');
+if (not $t->app->config->{db}) {
+ plan(skip_all => 'No database configured');
+}
+
$t->app->pg->db->query('drop schema if exists travelynx_test_02 cascade');
$t->app->pg->db->query('create schema travelynx_test_02');
$t->app->pg->db->query('set search_path to travelynx_test_02');