aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2017-11-06 15:33:43 +0000
committerStruan Donald <struan@exo.org.uk>2017-11-07 12:15:29 +0000
commit9d50dcb1c8947d269df2af3616b9f012dbe63c3e (patch)
tree230ccad7c325b32b4072e93b7d546305d0c65529 /t/app/controller
parenta26652ec2383d81eb9649e9d5b90485e574ccd55 (diff)
do not override template when displaying body contacts as text
move setting the body template to before `fetch_contacts` so it doesn't override setting the text only email address template. Fixes #1895
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/admin.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index b4fb54686..b63229444 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -289,6 +289,7 @@ subtest 'check text output' => sub {
$mech->get_ok('/admin/body/' . $body->id . '?text=1');
is $mech->content_type, 'text/plain';
$mech->content_contains('test category');
+ $mech->content_lacks('<body');
};