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 /t/app/controller | |
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 't/app/controller')
-rw-r--r-- | t/app/controller/about.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/app/controller/about.t b/t/app/controller/about.t index 43ee642e4..e1ffc34bb 100644 --- a/t/app/controller/about.t +++ b/t/app/controller/about.t @@ -24,12 +24,12 @@ ok !$mech->res->is_success(), "want a bad response"; is $mech->res->code, 404, "got 404"; FixMyStreet::override_config { - ALLOWED_COBRANDS => [ 'fiksgatami' ], + ALLOWED_COBRANDS => [ 'fixamingata' ], }, sub { - ok $mech->host("www.fiksgatami.no"), 'host to fiksgatami'; + ok $mech->host("www.fixamingata.se"), 'host to fixamingata'; $mech->get_ok('/faq'); - $mech->content_like(qr{Ofte spurte spørsmål ::}); - $mech->content_contains('html class="no-js" lang="nb"'); + $mech->content_like(qr{Vanliga frågor ::}); + $mech->content_contains('html class="no-js" lang="sv"'); }; $mech->get_ok('/'); |