From: Tomas Doran Date: Tue, 10 Feb 2009 22:46:30 +0000 (+0000) Subject: This did never work, has never worked, etc. Writing tests for the environment (to... X-Git-Tag: 5.80001~109 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f7de4f5cd712ebad26eab6ec06c60a3d753a1461;hp=d5df925fddfbcde957e258928c1abfdffba452bb This did never work, has never worked, etc. Writing tests for the environment (to show up the FCGI thing discussed in channel the other day) now works in the obvious way --- diff --git a/t/lib/TestApp/Controller/Dump.pm b/t/lib/TestApp/Controller/Dump.pm index 4b20f33..5ea3ba0 100644 --- a/t/lib/TestApp/Controller/Dump.pm +++ b/t/lib/TestApp/Controller/Dump.pm @@ -10,8 +10,7 @@ sub default : Action Private { sub env : Action Relative { my ( $self, $c ) = @_; - $c->stash( env => \%ENV ); - $c->forward('TestApp::View::Dump'); + $c->forward('TestApp::View::Dump', [\%ENV]); } sub parameters : Action Relative {