require Catalyst 5.8 for tests that use ctx_request()
Brian Cassidy [Thu, 13 Aug 2009 12:44:37 +0000 (12:44 +0000)]
t/22-suffix_env.t
t/23-path_env.t

index 3d47bd6..f9e73f4 100644 (file)
@@ -4,9 +4,14 @@ use warnings;
 use FindBin;
 use lib "$FindBin::Bin/lib";
 
-use Test::More tests => 3;
+use Test::More;
 
 BEGIN {
+    eval { require Catalyst; Catalyst->VERSION( '5.80001' ); };
+
+    plan skip_all => 'Catalyst 5.80001 required' if $@;
+    plan tests => 3;
+
     $ENV{ TESTAPP_CONFIG_LOCAL_SUFFIX } = 'test';
     use_ok 'Catalyst::Test', 'TestApp';
 }
index 8c4b6ed..8035842 100644 (file)
@@ -4,9 +4,14 @@ use warnings;
 use FindBin;
 use lib "$FindBin::Bin/lib";
 
-use Test::More tests => 3;
+use Test::More;
 
 BEGIN {
+    eval { require Catalyst; Catalyst->VERSION( '5.80001' ); };
+
+    plan skip_all => 'Catalyst 5.80001 required' if $@;
+    plan tests => 3;
+
     $ENV{ TESTAPP_CONFIG } = 'test.perl';
     use_ok 'Catalyst::Test', 'TestApp';
 }