aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestMech.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r--perllib/FixMyStreet/TestMech.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index 848025e8a..16871d0f2 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -241,7 +241,7 @@ sub get_text_body_from_email {
my $part = shift;
return if $part->subparts;
return if $part->content_type !~ m{text/plain};
- $body = $obj ? $part : $part->body;
+ $body = $obj ? $part : $part->body_str;
ok $body, "Found text body";
});
return $body;