diff options
author | Struan Donald <struan@exo.org.uk> | 2017-07-27 15:47:49 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-07-27 15:47:49 +0100 |
commit | 256833eca11be4450312a5f6626503669b4b16f7 (patch) | |
tree | 9296c6735664d1716898d5a266e36005e0c0b8b2 /t/app/controller/moderate.t | |
parent | 6b764a6963bed1b0366195e86d0f7ca7bcba5b36 (diff) |
do not replace deleted text with [...] when moderating
Replacing deleted text with [...] when moderating reports and comments
leads to very odd looking reports when correcting minor typos so just
leave the text as deleted.
Fixes #1774
Diffstat (limited to 't/app/controller/moderate.t')
-rw-r--r-- | t/app/controller/moderate.t | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/t/app/controller/moderate.t b/t/app/controller/moderate.t index 9ba1ba3df..c3c77866b 100644 --- a/t/app/controller/moderate.t +++ b/t/app/controller/moderate.t @@ -96,8 +96,8 @@ subtest 'Problem moderation' => sub { $mech->content_like(qr/Moderated by Bromley Council/); $report->discard_changes; - is $report->title, 'Good [...] good'; - is $report->detail, 'Good [...] good [...]improved'; + is $report->title, 'Good good'; + is $report->detail, 'Good good improved'; }; subtest 'Revert title and text' => sub { @@ -191,8 +191,8 @@ subtest 'Problem 2' => sub { $mech->base_like( qr{\Q$REPORT2_URL\E} ); $report2->discard_changes; - is $report2->title, 'Good [...] good'; - is $report2->detail, 'Good [...] good [...]improved'; + is $report2->title, 'Good good'; + is $report2->detail, 'Good good improved'; $mech->submit_form_ok({ with_fields => { %problem_prepopulated, @@ -236,7 +236,7 @@ subtest 'updates' => sub { $mech->base_like( qr{\Q$REPORT_URL\E} ); $update->discard_changes; - is $update->text, 'update good good [...] good', + is $update->text, 'update good good good', }; subtest 'Revert text' => sub { @@ -320,7 +320,7 @@ subtest 'Update 2' => sub { }}) or die $mech->content; $update2->discard_changes; - is $update2->text, 'update good good [...] good', + is $update2->text, 'update good good good', }; subtest 'Now stop being a staff user' => sub { |