Commit | Line | Data |
457c1d76 |
1 | #!perl |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use FindBin '$Bin'; |
7 | use lib "$Bin/lib"; |
8 | |
0d83c5de |
9 | use Test::More tests => 2; |
457c1d76 |
10 | |
11 | use Catalyst::Test 'TestApp'; |
12 | use HTTP::Request::Common; |
13 | |
14 | my $response = request POST '/cgi-bin/test.cgi', [ |
15 | foo => 'bar', |
16 | bar => 'baz' |
17 | ]; |
18 | |
19 | is($response->content, 'foo:bar bar:baz', 'POST to CGI'); |
0d83c5de |
20 | |
21 | $response = request '/cgi-bin/test_pathinfo.cgi/path/info'; |
22 | |
23 | is($response->content, '/path/info', 'PATH_INFO is correct'); |