[Rt-commit] rt branch, psgi, updated. rt-3.9.4-211-g04f46ba
? sunnavy
sunnavy at bestpractical.com
Tue Oct 19 23:14:52 EDT 2010
The branch, psgi has been updated
via 04f46ba3adf456830584a866ace5460af30080de (commit)
from 4677d476e45db4c42ee4dbd0a4abf51be75f2c9c (commit)
Summary of changes:
t/web/offline_utf8.t | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
- Log -----------------------------------------------------------------
commit 04f46ba3adf456830584a866ace5460af30080de
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Oct 20 11:14:15 2010 +0800
tweak offline_utf8.t to get around HTTP::Request::Common::form_data
diff --git a/t/web/offline_utf8.t b/t/web/offline_utf8.t
index 102e6a8..4a5fb8e 100644
--- a/t/web/offline_utf8.t
+++ b/t/web/offline_utf8.t
@@ -3,20 +3,7 @@ use strict;
use warnings;
use RT::Test tests => 7;
-
-use HTTP::Request::Common ();
-use Hook::LexWrap;
-wrap 'HTTP::Request::Common::form_data',
- post => sub {
- my $data = $_[-1];
- if (ref $data) {
- $data->[0] = Encode::encode_utf8($data->[0]);
- }
- else {
- $_[-1] = Encode::encode_utf8($_[-1]);
- }
- };
-
+use utf8;
use File::Temp qw/tempfile/;
use Encode;
@@ -54,7 +41,7 @@ $m->submit_form(
button => 'UpdateTickets',
# mimic what browsers do: they seems decoded $template
- fields => { string => decode( 'utf8', $template ), },
+ fields => { string => $template },
);
$m->content_like( qr/Ticket \d+ created/, 'found ticket created message' );
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list