Actually use make_context_closure correctly in the tests.
Florian Ragwitz [Mon, 29 Jun 2009 22:05:25 +0000 (22:05 +0000)]
t/lib/TestApp/Controller/ContextClosure.pm

index c81ffc9..8a5cbc8 100644 (file)
@@ -18,6 +18,7 @@ sub normal_closure : Local {
 sub context_closure : Local {
     my ($self, $ctx) = @_;
     $ctx->stash(closure => $self->make_context_closure(sub {
+        my ($ctx) = @_;
         $ctx->response->body('from context closure');
     }, $ctx));
     $ctx->response->body('stashed context closure');