diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-03-31 14:17:54 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-03-31 14:17:54 +0100 |
commit | dac0d4c71018c01d858d0111d0f772b49a6e124d (patch) | |
tree | 191bb55f2ebb738d8fccb8b3e73db5688aff291a /t/app/controller | |
parent | 6702f44f92e9c74fe6d2dd1c69c5418a15af178c (diff) | |
parent | e4707406bd816fb9b1bb2077b7452cc77dec3d94 (diff) |
Merge remote-tracking branch 'mysociety/refactor-email'
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/questionnaire.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/app/controller/questionnaire.t b/t/app/controller/questionnaire.t index 7718d5034..cad86a40d 100644 --- a/t/app/controller/questionnaire.t +++ b/t/app/controller/questionnaire.t @@ -63,8 +63,8 @@ my $email = $mech->get_email; ok $email, "got an email"; like $email->body, qr/fill in our short questionnaire/i, "got questionnaire email"; -like $email->body, qr/Testing =96 Detail/, 'email contains encoded character'; -is $email->header('Content-Type'), 'text/plain; charset="windows-1252"', 'in the right character set'; +like $email->body_str, qr/Testing \x{2013} Detail/, 'email contains encoded character'; +is $email->header('Content-Type'), 'text/plain; charset="utf-8"', 'in the right character set'; my ($token) = $email->body =~ m{http://.*?/Q/(\S+)}; ok $token, "extracted questionnaire token '$token'"; @@ -461,9 +461,9 @@ FixMyStreet::override_config { ok $email, "got an email"; $mech->clear_emails_ok; - like $email->body, qr/Testing =96 Detail/, 'email contains encoded character from user'; - like $email->body, qr/sak p=E5 FiksGataMi/, 'email contains encoded character from template'; - is $email->header('Content-Type'), 'text/plain; charset="windows-1252"', 'email is in right encoding'; + like $email->body_str, qr/Testing \x{2013} Detail/, 'email contains encoded character from user'; + like $email->body_str, qr/sak p\xe5 FiksGataMi/, 'email contains encoded character from template'; + is $email->header('Content-Type'), 'text/plain; charset="utf-8"', 'email is in right encoding'; }; $mech->delete_user('test@example.com'); |