update tests to ignore CATALYST_HOME env var
Matt S Trout [Fri, 22 Jul 2011 21:06:17 +0000 (21:06 +0000)]
Changes
t/aggregate/unit_core_path_to.t
t/aggregate/utf8_content_length.t

diff --git a/Changes b/Changes
index efce447..00c0c80 100644 (file)
--- a/Changes
+++ b/Changes
@@ -7,6 +7,7 @@
     output that cookie (rather than trying to do so and causing an exception
     as previously happened). A warning is logged if this occurs in debug
     mode.
+  - Update tests to ignore $ENV{CATALYST_HOME} where required
 
 5.80032 2011-02-23 01:10:00
 
index f4fe89f..823e626 100644 (file)
@@ -27,6 +27,8 @@ use_ok('Catalyst');
 
 my $context = 'Catalyst';
 
+delete $ENV{CATALYST_HOME}; # otherwise it'll set itself up to the wrong place
+
 $context->setup_home;
 my $base = dir($FindBin::Bin)->relative->stringify;
 
index 86297e8..64d4eb8 100644 (file)
@@ -5,6 +5,8 @@ use lib "$Bin/../lib";
 use File::Spec;
 use Test::More;
 
+BEGIN { delete $ENV{CATALYST_HOME} }
+
 use Catalyst::Test qw/TestAppEncoding/;
 
 if ( $ENV{CATALYST_SERVER} ) {