Fix tests when CATALYST_CONFIG_LOCAL_SUFFIX is set
Tomas Doran [Mon, 27 Apr 2009 11:49:16 +0000 (11:49 +0000)]
Changes
t/20-mock_load.t
t/21-mock_load_env.t

diff --git a/Changes b/Changes
index 800a094..54025af 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for Perl extension Catalyst::Plugin::ConfigLoader.
 
+    - Fix so that having CATALYST_CONFIG_LOCAL_SUFFIX set in $ENV{} doesn't
+      cause the tests to break.
+
 0.23 Sat Apr 18 2009
     - Update Data::Visitor
 
index 78fa146..0190b80 100644 (file)
@@ -3,6 +3,7 @@ package MockApp;
 use Test::More tests => 10;
 
 use Cwd;
+local %ENV;
 $ENV{ CATALYST_HOME } = cwd . '/t/mockapp';
 
 use_ok( 'Catalyst', qw( ConfigLoader ) );
index 7bdacf6..9494712 100644 (file)
@@ -3,6 +3,7 @@ package MockApp;
 use Test::More tests => 9;
 
 use Cwd;
+local %ENV;
 $ENV{ CATALYST_HOME }  = cwd . '/t/mockapp';
 $ENV{ MOCKAPP_CONFIG } = $ENV{ CATALYST_HOME } . '/mockapp.pl';