skip test that depends on unreleased runtime
Rafael Kitover [Sat, 30 May 2009 09:57:47 +0000 (09:57 +0000)]
Changes
lib/Catalyst/Controller/CGIBin.pm
lib/Catalyst/Controller/WrapCGI.pm
lib/CatalystX/GlobalContext.pm
t/wrap-cgi.t

diff --git a/Changes b/Changes
index c6b20b1..9c19b9a 100644 (file)
--- 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
index bad6d1d..8cf9820 100644 (file)
@@ -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
 
index 09f3a7a..26362ab 100644 (file)
@@ -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
 
index 44f9b10..e402218 100644 (file)
@@ -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
 
index 57f4ff9..0586686 100644 (file)
@@ -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');
+}