projects
/
catagits/CatalystX-Declare.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
e10b92d
)
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
patch
|
blob
|
blame
|
history
t/lib/TestApp/Controller/Foo.pm
patch
|
blob
|
blame
|
history
diff --git
a/t/001_basic.t
b/t/001_basic.t
index
7174ef7
..
7a49832
100644
(file)
--- 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
(file)
--- 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);
}
}
}