11 use Catalyst::Test 'TestApp';
20 package TestApp::Controller::Action::Chained;
21 no warnings 'redefine';
22 sub should_fail : Chained('/') Args$fail {}
26 eval { TestApp->setup_actions };
27 like($@, qr/Invalid Args\Q$fail\E/,
28 "Bad Args$fail attribute makes action setup fail");
39 package TestApp::Controller::Action::Chained;
40 no warnings 'redefine';
41 sub should_fail : Chained('/') Args$ok {}
44 eval { TestApp->setup_actions };
45 ok(!$@, "Args$ok works");