Revision history for Catalyst-Controller-WrapCGI
+0.017 2009-05-30 09:56:43
+ - skip test that depends on unreleased runtime
+
0.016 2009-05-26 22:35:09
- fallback to $c->req->remote_user for $ENV{REMOTE_USER}
- fix POD
is($response->content, '/cgi-bin/mtfnpy/test_scriptname.cgi',
'SCRIPT_NAME is correct');
-$ENV{REMOTE_USER} = 'TEST_USER';
-$response = request '/cgi-bin/test_remote_user.cgi';
-is($response->content, 'TEST_USER', 'REMOTE_USER was passed');
+SKIP: {
+ require Catalyst;
+
+ skip 'no $c->req->remote_user', 1
+ if $Catalyst::VERSION < 5.80005;
+
+ $ENV{REMOTE_USER} = 'TEST_USER';
+ $response = request '/cgi-bin/test_remote_user.cgi';
+ is($response->content, 'TEST_USER', 'REMOTE_USER was passed');
+}