aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorChris Mytton <chrism@mysociety.org>2020-01-29 11:19:37 +0000
committerChris Mytton <chrism@mysociety.org>2020-01-29 11:19:37 +0000
commit2415a520133596dcc341d1f88f9753d47ba56d41 (patch)
tree765226692364842cfd590c53b060e58fcda472da /t/app/controller
parent9ab52402829e01cda1bff1243087a945d272a746 (diff)
parent23662cf0b4e55b210976e486fb7ccbd565e00a9f (diff)
Merge branch 'allow-multiple-questions-to-disable-new-report-form'
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_new_open311.t10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/app/controller/report_new_open311.t b/t/app/controller/report_new_open311.t
index 3488b96ce..dcad10899 100644
--- a/t/app/controller/report_new_open311.t
+++ b/t/app/controller/report_new_open311.t
@@ -378,9 +378,13 @@ subtest "Category extras includes form disabling string" => sub {
my $output = $json->{by_category} ? $json->{by_category}{Pothole}{disable_form} : $json->{disable_form};
is_deeply $output, {
all => 'Please ring us!',
- message => 'Please please ring',
- code => 'dangerous',
- answers => [ 'yes' ],
+ questions => [
+ {
+ message => 'Please please ring',
+ code => 'dangerous',
+ answers => [ 'yes' ],
+ },
+ ],
};
}