7 use Catalyst::Test 'MyApp1';
8 use HTTP::Request::Common qw( GET PUT POST DELETE );
13 $MyApp1::Controller::C1::REQ{get}, 1,
14 'GET request for /foo went to the right sub'
25 $MyApp1::Controller::C1::REQ{get_html}, 1,
26 'GET request for /foo that looks like a browser went to the right sub'
29 request( POST '/foo' );
32 $MyApp1::Controller::C1::REQ{post}, 1,
33 'POST request for /foo went to the right sub'
36 request( PUT '/foo' );
39 $MyApp1::Controller::C1::REQ{put}, 1,
40 'PUT request for /foo went to the right sub'
43 request( DELETE '/foo' );
46 $MyApp1::Controller::C1::REQ{delete}, 1,
47 'DELETE request for /foo went to the right sub'
53 $MyApp1::Controller::C1::REQ{normal}, 1,
54 'GET request for /norma went to the right sub'
57 request( POST '/normal' );
60 $MyApp1::Controller::C1::REQ{normal}, 2,
61 'POST request for /norma went to the right sub'