X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FView%2FDump.pm;h=016df8116ae8d0b32da943a3c64e4654ef085837;hb=952ff53094bcabafb62064922bf33f5a0269450f;hp=2699103793f50debcb3e2878a000588f1aa8d6a5;hpb=0a1a7923b9862a4817a6571ba16cdbaf487a23d0;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/View/Dump.pm b/t/lib/TestApp/View/Dump.pm index 2699103..016df81 100644 --- a/t/lib/TestApp/View/Dump.pm +++ b/t/lib/TestApp/View/Dump.pm @@ -18,7 +18,7 @@ sub dump { $dumper->Purity($purity); $dumper->Useqq(0); $dumper->Deepcopy(1); - $dumper->Quotekeys(0); + $dumper->Quotekeys(1); $dumper->Terse(1); local $SIG{ __WARN__ } = sub { warn unless $_[ 0 ] =~ m{dummy} }; @@ -39,6 +39,12 @@ sub process { # Remove context from reference if needed my $context = delete $reference->{_context}; + my $env = delete $reference->{env}; + + if (my $log = $reference->{_log}) { + $log->clear_psgi if ($log->can('psgienv')); + } + if ( my $output = $self->dump( $reference, $purity ) ) { @@ -58,6 +64,8 @@ sub process { $reference->{_body} = $body; } + if($env) { $reference->{env} = $env } + return 1; }