4 package MyApp::Model::AcceptContext;
5 use base 'Catalyst::Model';
8 my ($self, $c, @args) = @_;
9 Test::Most::ok( ref $c);
12 $INC{'MyApp/Model/AcceptContext.pm'} = __FILE__;
14 package MyApp::Controller::Root;
15 use base 'Catalyst::Controller';
17 sub test_model :Local {
19 $c->res->body('test');
22 $INC{'MyApp/Controller/Root.pm'} = __FILE__;
30 use Catalyst::Test 'MyApp';
32 my ($res, $c) = ctx_request('/test_model');