summaryrefslogtreecommitdiffstats
path: root/t/02-extension.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-08-26 22:13:30 -0500
committerJesse Luehrs <doy@tozt.net>2010-08-26 22:31:13 -0500
commite55970bce6430bcc6cd014bc46983c100f660e79 (patch)
treee3b33ec08ad5f9a81b54734d84566c672d707352 /t/02-extension.t
parent0992f4ec5d71393517317327dd3164ad6b17a24c (diff)
downloadpackage-stash-e55970bce6430bcc6cd014bc46983c100f660e79.tar.gz
package-stash-e55970bce6430bcc6cd014bc46983c100f660e79.zip
cache the ref to the stash
Diffstat (limited to 't/02-extension.t')
-rw-r--r--t/02-extension.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/02-extension.t b/t/02-extension.t
index 2f95f15..f639cfa 100644
--- a/t/02-extension.t
+++ b/t/02-extension.t
@@ -13,8 +13,11 @@ use Test::Exception;
use Symbol 'gensym';
- sub namespace {
- $_[0]->{namespace} ||= {}
+ sub new {
+ my $class = shift;
+ my $self = $class->SUPER::new(@_);
+ $self->{namespace} = {};
+ return $self;
}
sub add_package_symbol {