application proxied on context instead the other way around; not all tests pass yet
[catagits/Catalyst-Runtime.git] / t / lib / PluginTestApp / Controller / Root.pm
index 5358074..cc59d96 100644 (file)
@@ -31,7 +31,7 @@ sub run_time_plugins : Local {
 # Trick perl into thinking the plugin is already loaded
     $INC{'Faux/Plugin.pm'} = 1;
 
-    ref($c)->plugin( faux => $faux_plugin );
+    $c->plugin( faux => $faux_plugin );
 
     isa_ok $c, 'Catalyst::Plugin::Test::Plugin';
     isa_ok $c, 'TestApp::Plugin::FullyQualified';