diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-06-26 11:26:26 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-06-26 13:03:06 +0100 |
commit | 84e7109971a976cd5923275e5927091df4ba6af5 (patch) | |
tree | e13cbd9e395d208dede08555ed9ab171a0eaf144 | |
parent | 09c7f9d765e2a58c3e74eee0ed03612d19ee7f9f (diff) |
Fix Swedish number test in Ubuntu 18.04.
-rw-r--r-- | t/app/01app.t | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/app/01app.t b/t/app/01app.t index 596e0de47..7b933973b 100644 --- a/t/app/01app.t +++ b/t/app/01app.t @@ -2,6 +2,7 @@ use strict; use warnings; +use utf8; package FixMyStreet::Cobrand::Tester; use parent 'FixMyStreet::Cobrand::FixaMinGata'; @@ -9,6 +10,7 @@ sub front_stats_data { { new => 0, fixed => 0, updates => 12345 } } package main; +use Encode; use Test::More; use Catalyst::Test 'FixMyStreet::App'; use charnames ':full'; @@ -19,8 +21,8 @@ SKIP: { FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'tester' ], }, sub { - my $page = get('/'); - my $num = "12 345"; + my $page = decode_utf8(get('/')); + my $num = "12( | )345"; like $page, qr/$num/; }; } |