- Change streaming test to serve itself rather than 01use.t, making test
sync for engines easier (t0m)
- Workaround change in LWP that broke a cookie test (RT #40037)
- - Back out go() since that feature's been pushed to 5.80
+ - Backport go() from 5.8 branch.
- Fix some Win32 test failures
- Add pt translation of error message (wreis)
- Make :Chained('../action') work (Florian Ragwitz)
+ - Fix forwarding to action object.
- Handle leading CRLF in HTTP requests sometimes sent by IE6 in keep-alive requests.
5.7099_03 2008-07-20 10:10:00
$c->forward( qw/TestApp::Controller::Action::Forward args/, [qq/new/] );
$c->res->body( $c->req->args->[0] );
}
+
+sub to_action_object : Local {
+ my ( $self, $c ) = @_;
+ $c->forward($self->action_for('embed'), [qw/mtfnpy/]);
+}
+
sub args : Local {
my ( $self, $c, $val ) = @_;
BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
-use Test::More tests => 50 * $iters;
+use Test::More tests => 53 * $iters;
use Catalyst::Test 'TestApp';
if ( $ENV{CAT_BENCHMARK} ) {
is( $response->content, '/action/forward/foo/bar',
'forward_to_uri_check correct namespace');
}
+
+ # test forwarding to Catalyst::Action objects
+ {
+ ok( my $response = request(
+ 'http://localhost/action/forward/to_action_object'),
+ 'forward/to_action_object request');
+
+ ok( $response->is_success, 'forward/to_action_object successful');
+ is( $response->content, 'mtfnpy',
+ 'forward/to_action_object forwards correctly');
+ }
}