6 package MyApp::Model::AcceptContext;
7 use base 'Catalyst::Model';
10 my ($self, $c, @args) = @_;
11 Test::More::ok( ref $c);
14 $INC{'MyApp/Model/AcceptContext.pm'} = __FILE__;
16 package MyApp::Controller::Root;
17 use base 'Catalyst::Controller';
19 sub test_model :Local {
21 $c->res->body('test');
24 $INC{'MyApp/Controller/Root.pm'} = __FILE__;
32 use Catalyst::Test 'MyApp';
34 my ($res, $c) = ctx_request('/test_model');