From: Robert 'phaylon' Sedlacek Date: Sat, 9 May 2009 02:07:15 +0000 (+0200) Subject: accessing action in tests now, needs D:D fix X-Git-Tag: 0.001~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3187b9aa9bc9280fe4b189823c77cb953770c1ec;p=catagits%2FCatalystX-Declare.git accessing action in tests now, needs D:D fix --- diff --git a/t/001_basic.t b/t/001_basic.t index 7174ef7..7a49832 100644 --- a/t/001_basic.t +++ b/t/001_basic.t @@ -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'; diff --git a/t/lib/TestApp/Controller/Foo.pm b/t/lib/TestApp/Controller/Foo.pm index 338d00f..512a2df 100644 --- a/t/lib/TestApp/Controller/Foo.pm +++ b/t/lib/TestApp/Controller/Foo.pm @@ -109,7 +109,7 @@ controller TestApp::Controller::Foo { under the { action stream is final { - $ctx->response->body(23); + $ctx->response->body($ctx->action->reverse); } } }