aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorM Somerville <matthew-github@dracos.co.uk>2020-10-02 14:14:17 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-10-02 14:16:48 +0100
commitbf90bf71fbac2c8e1be96646715182f876eccd57 (patch)
tree1fbf4e2eb8e79745cf84d28d4c5db587baa209e8 /t
parentf4df25a3067a880d753b81df3eb4d3d843dc0ba0 (diff)
Don’t strip all spaces from Open311 categories.
If a category’s send method is Open311, only strip spaces from the ends of the code. We are aware of active Open311 servers that have codes with spaces in the middle.
Diffstat (limited to 't')
-rw-r--r--t/app/controller/admin/bodies.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/app/controller/admin/bodies.t b/t/app/controller/admin/bodies.t
index 75db6f87c..b63cacd9d 100644
--- a/t/app/controller/admin/bodies.t
+++ b/t/app/controller/admin/bodies.t
@@ -231,9 +231,10 @@ subtest 'check open311 devolved editing' => sub {
$mech->content_contains("name=\"category\"\n size=\"30\" value=\"test category\"\n required>", 'Can edit as now devolved');
$mech->submit_form_ok( { with_fields => {
send_method => '',
- email => 'open311-code',
+ email => 'open311 code',
note => 'Removing email send method',
} } );
+ $mech->content_contains('open311 code');
$mech->content_contains('Values updated');
};