correct usages of PSGI_ENV
John Napiorkowski [Thu, 25 Nov 2010 00:56:13 +0000 (19:56 -0500)]
t/env.t

diff --git a/t/env.t b/t/env.t
index 4cc0c4e..d566671 100644 (file)
--- a/t/env.t
+++ b/t/env.t
@@ -10,9 +10,9 @@ use Test::More (
 {
   use Web::Simple 'EnvTest';
   package EnvTest;
-  dispatch {
+  sub dispatch_request  {
     sub (GET) {
-      my $env = @_[PSGI_ENV];
+      my $env = $_[PSGI_ENV];
       [ 200,
         [ "Content-type" => "text/plain" ],
         [ 'foo' ]