stop using Moo as a test package
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Action / TestMatchCaptures.pm
CommitLineData
ca5d34df 1package TestApp::Action::TestMatchCaptures;
1279064a 2
ca5d34df 3use Moose;
4
5extends 'Catalyst::Action';
1279064a 6
7sub match_captures {
8 my ($self, $c, $cap) = @_;
9 if ($cap->[0] eq 'force') {
10 $c->res->header( 'X-TestAppActionTestMatchCaptures', 'forcing' );
11 return 1;
12 } else {
13 $c->res->header( 'X-TestAppActionTestMatchCaptures', 'fallthrough' );
14 return 0;
15 }
16}
17
181;