Finished first version of WrapCGI dist
[catagits/Catalyst-Controller-WrapCGI.git] / t / plugin-cgibin.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 => 2;
10
11 use Catalyst::Test 'TestPlugin';
12 use HTTP::Request::Common;
13
14 my $response = request POST '/cgi-bin/test.pl', [
15     foo => 'bar',
16     bar => 'baz'
17 ];
18
19 is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File');
20
21 is(get('/cgi-bin/test.sh'), "Hello!\n", 'Non-Perl CGI File');