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=14556fc6b86c644b091e0a72a2450a874d92bd79;hb=550807bc7de841d2a615b065c2e4afedd44b0d84;hp=e45f0b94abb61302d245600d00ad5e026f17edf1;hpb=866dfdfe365a28a20be49ebaca883217122fc353;p=catagits%2FCatalyst-Action-REST.git diff --git a/t/catalyst-controller-rest.t b/t/catalyst-controller-rest.t index e45f0b9..14556fc 100644 --- a/t/catalyst-controller-rest.t +++ b/t/catalyst-controller-rest.t @@ -37,6 +37,12 @@ is_deeply Load( $res->content ), { error => "Cannot do what you have asked!" }, "... status bad request message"; +ok $res = request( $t->get( url => '/rest/test_status_forbidden' ) ); +is $res->code, 403, '... status forbidden'; +is_deeply Load( $res->content ), + { error => "access denied" }, + "... status forbidden"; + ok $res = request( $t->get( url => '/rest/test_status_not_found' ) ); is $res->code, 404, '... status not found'; is_deeply Load( $res->content ),