diff options
author | Struan Donald <struan@fury.ukcod.org.uk> | 2011-06-08 18:40:40 +0100 |
---|---|---|
committer | Struan Donald <struan@fury.ukcod.org.uk> | 2011-06-08 18:40:40 +0100 |
commit | 5493e3ad9623036f11bb458ee8abdd5c4250a8ed (patch) | |
tree | c11f12e78e736924e64039231d6427336ae478a9 /t/app/controller/admin.t | |
parent | 4e1b27d3fc4384c1c478864035529671bbd709f6 (diff) |
skip tests if no entry in secret table rather than failing
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r-- | t/app/controller/admin.t | 8 |
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/); |