aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-28 10:58:30 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-09-28 17:58:44 +0100
commita8eb8d3a3a1df337a1ebc73adf56f243de31d9e5 (patch)
tree7476412150d325e867c360a2a39b481200b3e0f5 /t/app
parent9e3abbbe4a69b4ab1d743b0b2e7e24ff4ac45ac2 (diff)
Process update left as part of questionnaire.
Treat an update left during a questionnaire the same as one left on a report page, ie. pass it through cleanup_text. This will also make sure updates left that are wholly whitespace are errored, or replaced with the default text.
Diffstat (limited to 't/app')
-rw-r--r--t/app/controller/questionnaire.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/app/controller/questionnaire.t b/t/app/controller/questionnaire.t
index 14d834078..d4fc9c74b 100644
--- a/t/app/controller/questionnaire.t
+++ b/t/app/controller/questionnaire.t
@@ -191,6 +191,16 @@ foreach my $test (
},
},
{
+ desc => 'Fixed report, reopened, reported before, blank update, no further questionnaire',
+ problem_state => 'fixed',
+ fields => {
+ been_fixed => 'No',
+ reported => 'Yes',
+ another => 'No',
+ update => ' ',
+ },
+ },
+ {
desc => 'Closed report, said fixed, reported before, no update, no further questionnaire',
problem_state => 'closed',
fields => {