aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-08 19:03:39 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-08 19:03:39 +0100
commita7fb8b236afb7f7f25008acdafdc5b0585e78b74 (patch)
tree6b754d7394d9a91ad9088ec2ec504338da9442e5 /t/app/controller
parenteb46ea44a80374aa01fd0fe9bac75525dba85f08 (diff)
parent8756c80504ceb6275f637c75fdcf1a047970d6ff (diff)
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 't/app/controller')
-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/);