Commit | Line | Data |
---|---|---|
9cd47364 | 1 | #!perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
6 | use FindBin '$Bin'; | |
7 | use lib "$Bin/lib"; | |
8 | ||
9 | use Test::More tests => 1; | |
10 | ||
11 | use Catalyst::Test 'TestCGIBinRoot'; | |
12 | use HTTP::Request::Common; | |
13 | ||
f410f043 | 14 | # Test configurable path root and dir |
9cd47364 | 15 | |
f410f043 | 16 | my $response = request POST '/cgi/path/test.pl', [ |
9cd47364 | 17 | foo => 'bar', |
18 | bar => 'baz' | |
19 | ]; | |
20 | ||
21 | is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File'); |