Finished first version of WrapCGI dist
[catagits/Catalyst-Controller-WrapCGI.git] / t / plugin-cgibin.t
CommitLineData
457c1d76 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin '$Bin';
7use lib "$Bin/lib";
8
9use Test::More tests => 2;
10
11use Catalyst::Test 'TestPlugin';
12use HTTP::Request::Common;
13
14my $response = request POST '/cgi-bin/test.pl', [
15 foo => 'bar',
16 bar => 'baz'
17];
18
19is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File');
20
21is(get('/cgi-bin/test.sh'), "Hello!\n", 'Non-Perl CGI File');