diff options
author | Struan Donald <struan@exo.org.uk> | 2017-09-18 16:46:47 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-10-16 10:43:45 +0100 |
commit | 69cd91b70b488ebba89558cbc41d2472ecbbec5a (patch) | |
tree | c194ee28b98d79e250f0fe8adacf4f2e1eafb60e /t/app/controller/moderate.t | |
parent | 2404b1954614d9cd93c44e42a13449b7a7efaae1 (diff) |
log all state changes in admin as comments
Create a comment on a problem when the admin is used to change the state
of the problem. If only the state is changed then create a comment with
blank text. If the category and state are changing then include details
of the category change in the comment.
Not all the state changes are displayed at the template level by
default.
Fixes #1846
Diffstat (limited to 't/app/controller/moderate.t')
-rw-r--r-- | t/app/controller/moderate.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/moderate.t b/t/app/controller/moderate.t index c3c77866b..c31f4880f 100644 --- a/t/app/controller/moderate.t +++ b/t/app/controller/moderate.t @@ -337,7 +337,7 @@ subtest 'And do it as a superuser' => sub { problem_title => 'Good good', problem_detail => 'Good good improved', }}); - $mech->content_contains('Moderated by a FixMyStreet administrator'); + $mech->content_contains('Moderated by an administrator'); }; done_testing(); |