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=68b4fd65bf9587cc4081f753071677c0d879d75d;hp=9832715dd6a404557f56cf6cd483c8cd64889fb8;hb=8f6cebb2303a0b0eda9422430f926c3f83c72aed;hpb=8ddad083473c069f134706a90ded61edc04b1917 diff --git a/t/lib/TestApp/Controller/Anon.pm b/t/lib/TestApp/Controller/Anon.pm index 9832715..68b4fd6 100644 --- a/t/lib/TestApp/Controller/Anon.pm +++ b/t/lib/TestApp/Controller/Anon.pm @@ -32,7 +32,7 @@ sub COMPONENT { # Don't do this yourself, use CatalystX::Component::Traits! 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'); }