X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAnon.pm;h=1bc3698ec7751adfc373499624ac3bb30776af40;hp=9832715dd6a404557f56cf6cd483c8cd64889fb8;hb=82010ea176741c7a4f2baf3f6f27377b1d9f6b15;hpb=5bb1a41514e56f629611b4b9bfc23f7c0ddfa8eb diff --git a/t/lib/TestApp/Controller/Anon.pm b/t/lib/TestApp/Controller/Anon.pm index 9832715..1bc3698 100644 --- a/t/lib/TestApp/Controller/Anon.pm +++ b/t/lib/TestApp/Controller/Anon.pm @@ -25,14 +25,13 @@ sub COMPONENT { # Don't do this yourself, use CatalystX::Component::Traits! # Special move as the methodattributes trait has changed our metaclass.. $meta = find_meta($meta->name); - $meta->add_method('meta' => sub { $meta }); $class = $meta->name; $class->new($app, $args); } sub test : Local ActionClass('+TestApp::Action::TestMyAction') { my ($self, $c) = @_; - $c->res->header('X-Component-Name-Controller', $self->_component_name); + $c->res->header('X-Component-Name-Controller', $self->catalyst_component_name); $c->res->body('It works'); }