X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp.pm;h=c1ec9b52e98662db8febf5629782b6c92080d357;hb=4fb27043578a31f1ffd7498d1097c817a932d173;hp=d1d8797d423e08b506c5ff05d75fd95122bca81d;hpb=258733f15e1e1ec4b4d92eda4b4471833890aced;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm index d1d8797..c1ec9b5 100644 --- a/t/lib/TestApp.pm +++ b/t/lib/TestApp.pm @@ -49,7 +49,8 @@ TestApp->config( action_args => { action_action_nine => { another_extra_arg => 13 } } - } + }, + encoding => 'UTF-8', ); # Test bug found when re-adjusting the metaclass compat code in Moose @@ -131,6 +132,11 @@ sub finalize_headers { $c->res->header('X-Test-Header', 'valid'); + my $call_count = $c->stash->{finalize_headers_call_count} || 0; + $call_count++; + $c->stash(finalize_headers_call_count => $call_count); + $c->res->header('X-Test-Header-Call-Count' => $call_count); + return $c->maybe::next::method(@_); }