X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FIncTestApp%2FController%2FRoot.pm;h=00b761d1927c2f0b9c754fba99edf3bfe57e9baa;hb=19eeb236f9bc60bd7a50c774d80fd019b1ec9a86;hp=21948c09457ba31b3abcfc732ad545972c9e9f1a;hpb=5ce67b0bac5e50b600b68ec341866822a7472b07;p=catagits%2FCatalyst-Plugin-Static-Simple.git diff --git a/t/lib/IncTestApp/Controller/Root.pm b/t/lib/IncTestApp/Controller/Root.pm index 21948c0..00b761d 100644 --- a/t/lib/IncTestApp/Controller/Root.pm +++ b/t/lib/IncTestApp/Controller/Root.pm @@ -8,38 +8,4 @@ use base qw/Catalyst::Controller/; __PACKAGE__->config(namespace => ''); -sub default : Private { - my ( $self, $c ) = @_; - - $c->res->output( 'default' ); -} - -sub subtest : Local { - my ( $self, $c ) = @_; - - $c->res->output( $c->subreq('/subtest2') ); -} - -sub subtest2 : Local { - my ( $self, $c ) = @_; - - $c->res->output( 'subtest2 ok' ); -} - -sub serve_static : Local { - my ( $self, $c ) = @_; - - my $file = catfile( $FindBin::Bin, 'lib', 'TestApp.pm' ); - - $c->serve_static_file( $file ); -} - -sub serve_static_404 : Local { - my ( $self, $c ) = @_; - - my $file = catfile( $FindBin::Bin, 'lib', 'foo.pm' ); - - $c->serve_static_file( $file ); -} - 1;