From a8eb8d3a3a1df337a1ebc73adf56f243de31d9e5 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 28 Sep 2015 10:58:30 +0100 Subject: 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. --- t/app/controller/questionnaire.t | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 't/app/controller') 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 @@ -190,6 +190,16 @@ foreach my $test ( # update => 'Dummy', Error for not setting this tested below }, }, + { + 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', -- cgit v1.2.3