aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r--t/app/controller/admin.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index ea3e8a656..5b7a3e83a 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -6,6 +6,14 @@ use FixMyStreet::TestMech;
my $mech = FixMyStreet::TestMech->new;
+my $secret = FixMyStreet::App->model('DB::Secret')->search();
+
+# don't explode if there's nothing in the secret table
+if ( $secret == 0 ) {
+ diag "You need to put an entry in the secret table for the admin tests to run";
+ plan skip_all => 'No entry in secret table';
+}
+
$mech->get_ok('/admin');
$mech->title_like(qr/Summary/);