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 | ||
1d40d9c3 | 11 | use Catalyst::Test 'TestCGIBinChainRoot'; |
9cd47364 | 12 | use HTTP::Request::Common; |
13 | ||
1d40d9c3 | 14 | # Test configurable path root and dir, and Chained root |
9cd47364 | 15 | |
f410f043 | 16 | my $response = request POST '/cgi/path/test.pl', [ |
9cd47364 | 17 | foo => 'bar', |
1d40d9c3 | 18 | bar => 'baz', |
9cd47364 | 19 | ]; |
20 | ||
1d40d9c3 | 21 | is($response->content, 'foo:bar bar:baz from_chain:from_chain', 'POST to Perl CGI File'); |