Subject: | Catalyst::Component::ContextClosure breaks with use namespace::autoclean |
The synopsis for Catalyst::Component::ContextClosure lists the top as:
use Moose;
use namespace::autoclean;
BEGIN {
extends 'Catalyst::Controller';
with 'Catalyst::Component::ContextClosure';
}
however, if you use namespace::autoclean in the controller, the
make_context_closure methods disappears (perhaps it is autocleaned).
The test-controller doesn't use namespace::autoclean, which is why this
isn't caught in the test (which, on the other hand requires
CatalystX::LeakChecker 0.03, while only 0.02 is on cpan atm).
Perhaps the test could skip the leak-checking if it isn't available, but
still test that closures get created and work even without LeakChecker?