X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcatalyst-controller-rest.t;fp=t%2Fcatalyst-controller-rest.t;h=e45f0b94abb61302d245600d00ad5e026f17edf1;hb=a60f84bed19339415b019ff6f466e8fba58dcabe;hp=18a064003f95d8456115d3977729fbba202e352b;hpb=bdff70a9a41c75023febf0783e4b014d02743673;p=catagits%2FCatalyst-Action-REST.git diff --git a/t/catalyst-controller-rest.t b/t/catalyst-controller-rest.t index 18a0640..e45f0b9 100644 --- a/t/catalyst-controller-rest.t +++ b/t/catalyst-controller-rest.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 20; +use Test::More; use YAML::Syck; use FindBin; @@ -51,4 +51,9 @@ is_deeply Load( $res->content ), ok $res = request( $t->get( url => '/rest/test_status_multiple_choices' ) ); is $res->code, 300, "... multiple choices"; +is_deeply Load($res->content), + { choices => [qw(/rest/choice1 /rest/choice2)] }, + "... 300 multiple choices has response body"; + +done_testing;