From: Florian Ragwitz Date: Fri, 17 Oct 2008 04:23:04 +0000 (+0000) Subject: Remove the exports builder from the Catalyst::Test namespace. X-Git-Tag: 5.8000_03~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=6e6df63d54966a0d06a850193dd30d16a2df4bef Remove the exports builder from the Catalyst::Test namespace. --- diff --git a/lib/Catalyst/Test.pm b/lib/Catalyst/Test.pm index 44e85fa..3ff6b43 100644 --- a/lib/Catalyst/Test.pm +++ b/lib/Catalyst/Test.pm @@ -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