From: Tomas Doran Date: Thu, 6 May 2010 08:27:06 +0000 (+0100) Subject: Additional test to ensure the response body actually really works X-Git-Tag: 1.08~127 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git;a=commitdiff_plain;h=a60f84bed19339415b019ff6f466e8fba58dcabe Additional test to ensure the response body actually really works --- 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;