X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcatalyst-controller-rest.t;h=e45f0b94abb61302d245600d00ad5e026f17edf1;hb=65987ff6713d195c5bab155a6e07dae2b29cdc69;hp=5d8f731f1a3e33744f5d47e0246ad2940c9982d7;hpb=9fb091193d2cb875593c1420c61c9935f276b73f;p=catagits%2FCatalyst-Action-REST.git diff --git a/t/catalyst-controller-rest.t b/t/catalyst-controller-rest.t index 5d8f731..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 => 18; +use Test::More; use YAML::Syck; use FindBin; @@ -48,3 +48,12 @@ is $res->code, 410, '... status gone'; is_deeply Load( $res->content ), { error => "Document have been deleted by foo" }, "... status gone message"; + +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; +