diff options
Diffstat (limited to 't/10-synopsis.t')
-rw-r--r-- | t/10-synopsis.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/10-synopsis.t b/t/10-synopsis.t index 4c93f32..ecde8b6 100644 --- a/t/10-synopsis.t +++ b/t/10-synopsis.t @@ -6,12 +6,12 @@ use Test::More; use Package::Stash; my $stash = Package::Stash->new('Foo'); -$stash->add_package_symbol('%foo', {bar => 1}); +$stash->add_symbol('%foo', {bar => 1}); { no warnings 'once'; is($Foo::foo{bar}, 1, "set in the stash properly"); } -ok(!$stash->has_package_symbol('$foo'), "doesn't have anything in scalar slot"); +ok(!$stash->has_symbol('$foo'), "doesn't have anything in scalar slot"); my $namespace = $stash->namespace; is_deeply(*{ $namespace->{foo} }{HASH}, {bar => 1}, "namespace works properly"); |