diff options
author | Dave Arter <davea@mysociety.org> | 2019-05-22 17:45:58 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:12:59 +0100 |
commit | 323d3a632453bfcd10360fe2c2b9e4d684f350c8 (patch) | |
tree | dd067f8ca335231f2d281d8e1dc23307aa749ca6 /perllib/FixMyStreet/TestMech.pm | |
parent | 418ed096e7c79c8ccde9a2eb5023a7a4f0210402 (diff) |
Switch all Norwegian tests to Swedish.
On Macs, the Norwegian locale is no_NO, whereas on Debian it is nb_NO:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=206474
This can cause issues running the Norwegian tests on Macs with certain
setups (e.g. on my machine a Homebrew installation of perl and gettext
fails, but MacPorts and system pass). As Swedish is sv_SE in both, the
easiest solution is to switch the tests to Swedish.
Diffstat (limited to 'perllib/FixMyStreet/TestMech.pm')
-rw-r--r-- | perllib/FixMyStreet/TestMech.pm | 2 |
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; |