parse actionrole params and pass them to attributes
[catagits/CatalystX-Declare.git] / t / 100_complex.t
index c982ce5..001756f 100644 (file)
@@ -67,5 +67,8 @@ is get('/foo/wants_integer/butdoesntgetone'), 'no integer', 'validation error ca
 # fix bug with capture args below under { }
 is get('/foo/lower/down/the/param/3/road/5'), 8, 'capture args and block under work together';
 
+# Make sure action roles with parameters pass params to attributes
+is get('/actionparams/first'), 'action_args_first: 100,101', 'actionrole with params';
+is get('/actionparams/second'), 'action_args_second: 200,201', 'actionrole with params (part two)';
 
 done_testing;