From: Matt S Trout Date: Fri, 22 Jul 2011 21:06:17 +0000 (+0000) Subject: update tests to ignore CATALYST_HOME env var X-Git-Tag: 5.80033~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=2e4a8275ce0d9d44cc059e042b0344d9e071150f update tests to ignore CATALYST_HOME env var --- diff --git a/Changes b/Changes index efce447..00c0c80 100644 --- 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 diff --git a/t/aggregate/unit_core_path_to.t b/t/aggregate/unit_core_path_to.t index f4fe89f..823e626 100644 --- a/t/aggregate/unit_core_path_to.t +++ b/t/aggregate/unit_core_path_to.t @@ -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; diff --git a/t/aggregate/utf8_content_length.t b/t/aggregate/utf8_content_length.t index 86297e8..64d4eb8 100644 --- a/t/aggregate/utf8_content_length.t +++ b/t/aggregate/utf8_content_length.t @@ -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} ) {