X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestContentNegotiation%2FController%2FRoot.pm;fp=t%2Flib%2FTestContentNegotiation%2FController%2FRoot.pm;h=68a41b6c54b3fcf9034d9a625112e3944b1c77df;hp=60fe6f753820ac99c4ca82329443588b2ab84003;hb=88e5a8b0c4d28e46b8ba6b6b9567063e57af9063;hpb=9868e0a0023cc8b598d60f150ea367e0056a65f3 diff --git a/t/lib/TestContentNegotiation/Controller/Root.pm b/t/lib/TestContentNegotiation/Controller/Root.pm index 60fe6f7..68a41b6 100644 --- a/t/lib/TestContentNegotiation/Controller/Root.pm +++ b/t/lib/TestContentNegotiation/Controller/Root.pm @@ -10,7 +10,7 @@ sub start :Chained(/) PathPrefix CaptureArgs(0) { } sub is_json : Chained('start') PathPart('') Consumes('application/json') Args(0) { pop->res->body('is_json1') } sub is_urlencoded : Chained('start') PathPart('') Consumes('application/x-www-form-urlencoded') Args(0) { pop->res->body('is_urlencoded1') } sub is_multipart : Chained('start') PathPart('') Consumes('multipart/form-data') Args(0) { pop->res->body('is_multipart1') } - + sub under :Chained('start') CaptureArgs(0) { } sub is_json_under : Chained('under') PathPart('') Consumes(JSON) Args(0) { pop->res->body('is_json2') } @@ -18,11 +18,11 @@ sub start :Chained(/) PathPrefix CaptureArgs(0) { } sub is_multipart_under : Chained('under') PathPart('') Consumes(Multipart) Args(0) { pop->res->body('is_multipart2') } ## Or allow more than one type - + sub multi :Chained('start') PathPart('') CaptureArgs(0) { } - + sub is_more_than_one_1 - : Chained('multi') + : Chained('multi') : Consumes('application/x-www-form-urlencoded') : Consumes('multipart/form-data') : Args(0) @@ -31,7 +31,7 @@ sub start :Chained(/) PathPrefix CaptureArgs(0) { } } sub is_more_than_one_2 - : Chained('multi') + : Chained('multi') : Consumes('HTMLForm') : Args(0) { @@ -39,7 +39,7 @@ sub start :Chained(/) PathPrefix CaptureArgs(0) { } } sub is_more_than_one_3 - : Chained('multi') + : Chained('multi') : Consumes('application/x-www-form-urlencoded,multipart/form-data') : Args(0) {