From: Rafael Kitover Date: Sat, 30 May 2009 09:57:47 +0000 (+0000) Subject: skip test that depends on unreleased runtime X-Git-Tag: 0.030~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c0c72ec290bad02174311dc28f010da1abfaa652;p=catagits%2FCatalyst-Controller-WrapCGI.git skip test that depends on unreleased runtime --- diff --git a/Changes b/Changes index c6b20b1..9c19b9a 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ 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 diff --git a/lib/Catalyst/Controller/CGIBin.pm b/lib/Catalyst/Controller/CGIBin.pm index bad6d1d..8cf9820 100644 --- a/lib/Catalyst/Controller/CGIBin.pm +++ b/lib/Catalyst/Controller/CGIBin.pm @@ -23,11 +23,11 @@ Catalyst::Controller::CGIBin - Serve CGIs from root/cgi-bin =head1 VERSION -Version 0.016 +Version 0.017 =cut -our $VERSION = '0.016'; +our $VERSION = '0.017'; =head1 SYNOPSIS diff --git a/lib/Catalyst/Controller/WrapCGI.pm b/lib/Catalyst/Controller/WrapCGI.pm index 09f3a7a..26362ab 100644 --- a/lib/Catalyst/Controller/WrapCGI.pm +++ b/lib/Catalyst/Controller/WrapCGI.pm @@ -20,11 +20,11 @@ Catalyst::Controller::WrapCGI - Run CGIs in Catalyst =head1 VERSION -Version 0.016 +Version 0.017 =cut -our $VERSION = '0.016'; +our $VERSION = '0.017'; =head1 SYNOPSIS diff --git a/lib/CatalystX/GlobalContext.pm b/lib/CatalystX/GlobalContext.pm index 44f9b10..e402218 100644 --- a/lib/CatalystX/GlobalContext.pm +++ b/lib/CatalystX/GlobalContext.pm @@ -15,11 +15,11 @@ CatalystX::GlobalContext - Export Catalyst Context =head1 VERSION -Version 0.016 +Version 0.017 =cut -our $VERSION = '0.016'; +our $VERSION = '0.017'; =head1 SYNOPSIS diff --git a/t/wrap-cgi.t b/t/wrap-cgi.t index 57f4ff9..0586686 100644 --- a/t/wrap-cgi.t +++ b/t/wrap-cgi.t @@ -53,6 +53,13 @@ $response = request '/cgi-bin/mtfnpy/test_scriptname.cgi/foo/bar'; 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'); +}