X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-Component-SubInclude.git;a=blobdiff_plain;f=t%2Flib%2FESITest%2FController%2FRoot.pm;h=43881bfa230a6e76e50a654fd61b898570038942;hp=6a9dc31d587389ff152563e0cbb0b6dc8b365533;hb=7b1b8afddeb5ad9dd89dd782bb43f2093992f5e7;hpb=c33bb2368e4b3ad3c1e0555d3f188f3e0f682372 diff --git a/t/lib/ESITest/Controller/Root.pm b/t/lib/ESITest/Controller/Root.pm index 6a9dc31..43881bf 100644 --- a/t/lib/ESITest/Controller/Root.pm +++ b/t/lib/ESITest/Controller/Root.pm @@ -2,17 +2,19 @@ package ESITest::Controller::Root; use strict; use warnings; -use parent 'Catalyst::Controller'; +use base 'Catalyst::Controller'; __PACKAGE__->config->{namespace} = ''; -sub index :Path Args(0) { +sub auto : Private { my ( $self, $c ) = @_; + $c->stash->{'current_view'} = 'TT'; + return 1; } -sub base : Chained('/') PathPart('') CaptureArgs(0) { - my ( $self, $c ) = @_; -} +sub index :Path Args(0) {} + +sub base : Chained('/') PathPart('') CaptureArgs(0) {} sub time_include : Chained('base') PathPart('time') Args(0) { my ( $self, $c ) = @_; @@ -106,6 +108,14 @@ sub time_args_no_chained : Path('time_args_no_chained') Args { $c->stash->{template} = 'time_include.tt'; } +sub http : Chained('base') PathPart('') CaptureArgs(0) { + pop->stash->{'current_view'} = 'TTWithHTTP'; +} + +sub http_cpan : Chained('http') Args(0) {} + +sub http_github : Chained('http') Args(0) {} + sub end : ActionClass('RenderView') {} 1;