[Catalyst-commits] r9260 - Catalyst-Runtime/5.80/trunk/lib/Catalyst
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Sun Feb 8 16:29:06 GMT 2009
Author: rafl
Date: 2009-02-08 16:29:06 +0000 (Sun, 08 Feb 2009)
New Revision: 9260
Modified:
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Test.pm
Log:
Workaround for unknown namespace::clean + Sub::Exporter + perl -d problem.
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Test.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Test.pm 2009-02-08 16:29:00 UTC (rev 9259)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Test.pm 2009-02-08 16:29:06 UTC (rev 9260)
@@ -9,7 +9,7 @@
use Class::MOP;
use Sub::Exporter;
-sub build_exports {
+my $build_exports = sub {
my ($self, $meth, $args, $defaults) = @_;
my $request;
@@ -55,14 +55,13 @@
return Test::More->builder->is_eq(scalar($res->content_type), at _);
},
};
-}
+};
-use namespace::clean;
our $default_host;
{
my $import = Sub::Exporter::build_exporter({
- groups => [ all => \&build_exports ],
+ groups => [ all => $build_exports ],
into_level => 1,
});
More information about the Catalyst-commits
mailing list