accessing action in tests now, needs D:D fix
Robert 'phaylon' Sedlacek [Sat, 9 May 2009 02:07:15 +0000 (04:07 +0200)]
t/001_basic.t
t/lib/TestApp/Controller/Foo.pm

index 7174ef7..7a49832 100644 (file)
@@ -24,4 +24,4 @@ is get('/foo/under/23'), 'under 23', 'under as keyword';
 is get('/foo/,comma/iaia'), 'iaia', 'comma separation';
 
 # nested under
-is get('/foo/lower/down/the/stream'), 23, 'nested under blocks';
+is get('/foo/lower/down/the/stream'), 'foo/stream', 'nested under blocks';
index 338d00f..512a2df 100644 (file)
@@ -109,7 +109,7 @@ controller TestApp::Controller::Foo {
             under the {
 
                 action stream is final {
-                    $ctx->response->body(23);
+                    $ctx->response->body($ctx->action->reverse);
                 }
             }
         }