'under' and 'as' are parameterizable
[catagits/CatalystX-Declare.git] / t / lib / TestApp / Controller / Parameterized.pm
index 9a52956..84312df 100644 (file)
@@ -1,7 +1,13 @@
 use CatalystX::Declare;
 
 controller TestApp::Controller::Parameterized {
-    with 'TestApp::ControllerRole::Parameterized' => { message => 'foo' };
+    with 'TestApp::ControllerRole::Parameterized' => { 
+        message => 'foo',
+        base    => 'somebase',
+        part    => 'somepart',
+    };
 
     action base under '/' as 'param';
+
+    action somebase under base;
 }