876fbe76bd85a1362976637a711fe23ce16c9ff0
[catagits/Catalyst-Controller-WrapCGI.git] / t / cgibin_root_path.t
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
14 # Test configurable path root and dir
15
16 my $response = request POST '/cgi/path/test.pl', [
17     foo => 'bar',
18     bar => 'baz'
19 ];
20
21 is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File');