[Catalyst-commits] r11135 - trunk/Catalyst-Plugin-ConfigLoader/t
bricas at dev.catalyst.perl.org
bricas at dev.catalyst.perl.org
Thu Aug 13 12:44:37 GMT 2009
Author: bricas
Date: 2009-08-13 12:44:37 +0000 (Thu, 13 Aug 2009)
New Revision: 11135
Modified:
trunk/Catalyst-Plugin-ConfigLoader/t/22-suffix_env.t
trunk/Catalyst-Plugin-ConfigLoader/t/23-path_env.t
Log:
require Catalyst 5.8 for tests that use ctx_request()
Modified: trunk/Catalyst-Plugin-ConfigLoader/t/22-suffix_env.t
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/22-suffix_env.t 2009-08-12 11:03:06 UTC (rev 11134)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/22-suffix_env.t 2009-08-13 12:44:37 UTC (rev 11135)
@@ -4,9 +4,14 @@
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';
}
Modified: trunk/Catalyst-Plugin-ConfigLoader/t/23-path_env.t
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/t/23-path_env.t 2009-08-12 11:03:06 UTC (rev 11134)
+++ trunk/Catalyst-Plugin-ConfigLoader/t/23-path_env.t 2009-08-13 12:44:37 UTC (rev 11135)
@@ -4,9 +4,14 @@
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';
}
More information about the Catalyst-commits
mailing list