Remove the exports builder from the Catalyst::Test namespace.
Florian Ragwitz [Fri, 17 Oct 2008 04:23:04 +0000 (04:23 +0000)]
lib/Catalyst/Test.pm

index 44e85fa..3ff6b43 100644 (file)
@@ -7,18 +7,6 @@ use Catalyst::Utils;
 use Class::MOP;
 use Sub::Exporter;
 
-{
-    my $import = Sub::Exporter::build_exporter({
-        groups => [ all => \&build_exports ],
-        into_level => 1,
-    });
-
-    sub import {
-        my ($self, $class) = @_;
-        $import->($self, '-all' => { class => $class });
-    }
-}
-
 sub build_exports {
     my ($self, $meth, $args, $defaults) = @_;
 
@@ -67,6 +55,20 @@ sub build_exports {
     };
 }
 
+use namespace::clean;
+
+{
+    my $import = Sub::Exporter::build_exporter({
+        groups => [ all => \&build_exports ],
+        into_level => 1,
+    });
+
+    sub import {
+        my ($self, $class) = @_;
+        $import->($self, '-all' => { class => $class });
+    }
+}
+
 =head1 NAME
 
 Catalyst::Test - Test Catalyst Applications