Merge branch 'master' into gsoc_breadboard
[catagits/Catalyst-Runtime.git] / t / lib / TestAppMVCWarnings / Controller / Root.pm
CommitLineData
9e981d5f 1package TestAppMVCWarnings::Controller::Root;
2use Moose;
3BEGIN { extends 'Catalyst::Controller' };
4
5__PACKAGE__->config->{namespace} = '';
6
7sub index :Path Args() {}
8
9sub model : Local {
10 my ($self, $c) = @_;
11 $c->model; # Cause model lookup and ergo warning we are testing.
12 $c->res->body('foo');
13}
14
15sub view : Local {
16 my ($self, $c) = @_;
17 $c->view; # Cause view lookup and ergo warning we are testing.
18 $c->res->body('bar');
19}
20
211;