Add a test for configuring attributes for all actions
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Action / Action.pm
index 21d4f51..6cee5f5 100644 (file)
@@ -5,7 +5,9 @@ use base 'TestApp::Controller::Action';
 
 __PACKAGE__->config(
     actions => {
-        action_action_five => { ActionClass => '+Catalyst::Action::TestBefore' },
+        '*'                 => { extra_attribute  => 13 },
+        action_action_five  => { ActionClass => '+Catalyst::Action::TestBefore' },
+        action_action_eight => { another_extra_attribute => 'foo' },
     },
     action_args => {
         '*'                 => { extra_arg         => 42 },
@@ -51,4 +53,9 @@ sub action_action_seven : Global : ActionClass('~TestExtraArgsAction') {
     $c->forward('TestApp::View::Dump::Request');
 }
 
+sub action_action_eight : Global  {
+    my ( $self, $c ) = @_;
+    $c->forward('TestApp::View::Dump::Action');
+}
+
 1;