Add test controller with its own meta method, still works
[catagits/Catalyst-Runtime.git] / t / lib / TestAppWithMeta / Controller / Root.pm
CommitLineData
2664a81b 1package TestAppWithMeta::Controller::Root;
2use Moose;
3use namespace::clean -except => 'meta';
4
5BEGIN { extends 'Catalyst::Controller' }
6
7__PACKAGE__->config( namespace => '' );
8
9no warnings 'redefine';
10sub meta { 'fnar' }
11use warnings 'redefine';
12
13sub default : Private {
14 my ($self, $c) = @_;
15 $c->res->body($self->meta);
16}
17
181;
19