Permalink
Browse files

Add test for removing symbols other than imports.

  • Loading branch information...
1 parent cb1750b commit 53c5d37618988814908b182b0acf492c9a8394a2 @rafl rafl committed Apr 17, 2009
Showing with 13 additions and 0 deletions.
  1. +13 −0 t/also.t
View
@@ -0,0 +1,13 @@
+use strict;
+use warnings;
+use Test::More tests => 2;
+
+{
+ package Foo;
+ use namespace::autoclean -also => ['bar'];
+ sub bar {}
+ sub baz {}
+}
+
+ok(!Foo->can('bar'), '-also works');
+ok( Foo->can('baz'), 'method not specified in -also remains');

0 comments on commit 53c5d37

Please sign in to comment.