aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-09-08 21:26:52 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-09-11 11:28:12 +0100
commit59f419a4f2ea2a94ba30b43d2dadb6c6fcab3729 (patch)
tree3fa621989ad77e5273b3d83c32b7786d875b7251 /t
parent137dcda8e489c5cbd2a777c83148d1e4a3bd1a60 (diff)
Fix issue editing category with '/' in it.
Simplify chaining of body/category admin URLs so that all categories are treated the same, with `/` or without, and the template will then always have its CSRF token.
Diffstat (limited to 't')
-rw-r--r--t/cobrand/zurich.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 225fbfd41..03b20b087 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -695,6 +695,7 @@ subtest "only superuser can edit bodies" => sub {
$user = $mech->log_in_ok( 'dm1@example.org' );
FixMyStreet::override_config {
ALLOWED_COBRANDS => [ 'zurich' ],
+ MAPIT_URL => 'http://mapit.zurich/',
}, sub {
$mech->get( '/admin/body/' . $zurich->id );
};