X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FCatty%2FController%2FRoot.pm;fp=t%2Flib%2FCatty%2FController%2FRoot.pm;h=77a28250f0f5306af3c167f94178a18e5e38d883;hb=705f22fa6179b21fdca4874648a162ecd31db3e2;hp=c35798b67dcfa58a88a961f21aeb2d5959601858;hpb=aabbaca0c771e5d95ec645d98a29600640dc6255;p=catagits%2FTest-WWW-Mechanize-Catalyst.git diff --git a/t/lib/Catty/Controller/Root.pm b/t/lib/Catty/Controller/Root.pm index c35798b..77a2825 100644 --- a/t/lib/Catty/Controller/Root.pm +++ b/t/lib/Catty/Controller/Root.pm @@ -7,6 +7,7 @@ use base qw/ Catalyst::Controller /; use Cwd; use MIME::Base64; use Encode (); +use utf8; __PACKAGE__->config( namespace => '' ); @@ -143,9 +144,9 @@ sub bad_content_encoding :Global { $c->res->body('foo'); } -sub redirect_to_utf8_upgraded_string { +sub redirect_to_utf8_upgraded_string : Global { my($self, $c) = @_; - my $where = $c->uri_for('hello')->stringify; + my $where = $c->uri_for('hello', 'müller')->as_string; utf8::upgrade($where); $c->res->redirect($where); }