diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-10-07 17:01:28 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-10-08 16:04:54 +0100 |
commit | f062193076b5caaceebd9f1dae62c01234c3f3b1 (patch) | |
tree | 7921bbd4696010f76bdde4ae33d6614686edbc76 /t/app/controller/admin.t | |
parent | cf866de4b2e9d402c4333c083f35d0d7ec99142c (diff) |
Validate category name/email/note in admin.
This prevents the creation of a category with a blank name. Fixes #556.
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r-- | t/app/controller/admin.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index bf7a9ed70..2cc88ccc3 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -219,6 +219,7 @@ subtest 'check contact editing' => sub { $mech->content_contains( '<td>test2 note' ); $mech->content_contains( '<td>Public' ); + $mech->get_ok('/admin/body_edit/2650/test%20category'); $mech->submit_form_ok( { with_fields => { email => 'test2@example.com', note => 'test2 note', |