aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/around.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-15 16:02:21 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-07-16 14:58:12 +0100
commit88c607fa378951491c7ec0f3384bc8f27fbca467 (patch)
tree3697d45c0ce00625f416c8fc61c0e0cd87fb4cd7 /t/app/controller/around.t
parent8a37b57398e09ff13a7370b5119de734ecbc772a (diff)
Fix lookups in templates of categories with &s.
A hash lookup in a template is escaping the key used, meaning the lookup is failing anywhere we are using a category containing an ampersand as a key. A continuation of the changes made in 527d763b.
Diffstat (limited to 't/app/controller/around.t')
-rw-r--r--t/app/controller/around.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/around.t b/t/app/controller/around.t
index 784801517..e35406bb6 100644
--- a/t/app/controller/around.t
+++ b/t/app/controller/around.t
@@ -217,8 +217,8 @@ for my $permission ( qw/ report_inspect report_mark_private/ ) {
subtest 'check assigned-only list items do not display shortlist buttons' => sub {
my $body = FixMyStreet::DB->resultset('Body')->find( $body_edin_id );
- my $contact = $mech->create_contact_ok( category => 'Horses', body_id => $body->id, email => "horses\@example.org" );
- $edinburgh_problems[4]->update({ category => 'Horses' });
+ my $contact = $mech->create_contact_ok( category => 'Horses & Ponies', body_id => $body->id, email => "horses\@example.org" );
+ $edinburgh_problems[4]->update({ category => 'Horses & Ponies' });
my $user = $mech->log_in_ok( 'test@example.com' );
$user->set_extra_metadata(assigned_categories_only => 1);