From 87543f78383eaab0d78d0fadc1655e39f9335517 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 31 Jul 2015 12:01:27 +0100 Subject: Move Latin-char-specific name check to cobrand. Also move some UK-specific code in the same function. The specific code is still tested in report_new.t. --- t/app/model/problem.t | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 't/app/model/problem.t') diff --git a/t/app/model/problem.t b/t/app/model/problem.t index 1b6488fc7..ad82a62a5 100644 --- a/t/app/model/problem.t +++ b/t/app/model/problem.t @@ -66,30 +66,6 @@ for my $test ( name => 'Please enter your name', } }, - { - desc => 'name too short', - changed => { - name => 'xx', - }, - errors => { - title => 'Please enter a subject', - detail => 'Please enter some details', - bodies => 'No council selected', - name => 'Please enter your full name, councils need this information – if you do not wish your name to be shown on the site, untick the box below', - } - }, - { - desc => 'name is anonymous', - changed => { - name => 'anonymous', - }, - errors => { - title => 'Please enter a subject', - detail => 'Please enter some details', - bodies => 'No council selected', - name => 'Please enter your full name, councils need this information – if you do not wish your name to be shown on the site, untick the box below', - } - }, { desc => 'correct name', changed => { -- cgit v1.2.3