X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flive%2Flib%2FTestApp%2FController%2FAction%2FForward.pm;h=02ce255955bd8d2f881e6c45cf9a89278e2968f4;hp=b03eff9c2389e6e4793d5156b78a81dc05cf0664;hb=ab96c27ad9478fd4bb2734f6b9d1ee95acf190fb;hpb=35bdf5eadf74c6edf4f6015b7f1c689c6092dcf4 diff --git a/t/live/lib/TestApp/Controller/Action/Forward.pm b/t/live/lib/TestApp/Controller/Action/Forward.pm index b03eff9..02ce255 100644 --- a/t/live/lib/TestApp/Controller/Action/Forward.pm +++ b/t/live/lib/TestApp/Controller/Action/Forward.pm @@ -63,4 +63,21 @@ sub args : Local { die "passed argument does not match args" unless $val eq $c->req->args->[0]; } +sub args_embed_relative : Local { + my ( $self, $c ) = @_; + $c->forward( 'embed/ok' ); +} + +sub args_embed_absolute : Local { + my ( $self, $c ) = @_; + $c->forward( '/action/forward/embed/ok' ); +} + +sub embed : Local { + my ( $self, $c, $ok ) = @_; + + $ok ||= 'not ok'; + $c->res->body( $ok ); +} + 1;