X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git;a=blobdiff_plain;f=t%2Fcatalyst-action-rest.t;fp=t%2Fcatalyst-action-rest.t;h=96452e91d79c34bbba688527f92b1eaec27da802;hp=6bfadd9037abd6bc97f8aebcc8e9b7a0922298c8;hb=a08d447bc7896570e721648271c819bd5c438541;hpb=44fa7f9429568532ea892e2020c20177b71cb736 diff --git a/t/catalyst-action-rest.t b/t/catalyst-action-rest.t index 6bfadd9..96452e9 100644 --- a/t/catalyst-action-rest.t +++ b/t/catalyst-action-rest.t @@ -44,17 +44,17 @@ ok($head_res->code == 405, 'HEAD request succeeded') my $fail_res = request( $t->delete( url => '/notreally' ) ); is( $fail_res->code, 405, "Request to bad method gets 405 Not Implemented" ); -is( $fail_res->header('allow'), "GET", "405 allow header properly set." ); +is( $fail_res->header('allow'), "GET, HEAD", "405 allow header properly set." ); my $options_res = request( $t->options( url => '/notreally' ) ); is( $options_res->code, 200, "OPTIONS request handler succeeded" ); is( $options_res->header('allow'), - "GET", "OPTIONS request allow header properly set." ); + "GET, HEAD", "OPTIONS request allow header properly set." ); my $opts_res = request( $t->options( url => '/rest/opts' ) ); is( $opts_res->code, 200, "OPTIONS request handler succeeded" ); is( $opts_res->header('allow'), - "GET", "OPTIONS request allow header properly set." ); + "GET, HEAD", "OPTIONS request allow header properly set." ); is($opts_res->content, q{}, 'should have no body'); $opts_res = request( @@ -65,7 +65,7 @@ $opts_res = request( ); is( $opts_res->code, 200, "OPTIONS request handler succeeded" ); is( $opts_res->header('allow'), - "GET", "OPTIONS request allow header properly set." ); + "GET, HEAD", "OPTIONS request allow header properly set." ); is($opts_res->content, q{}, 'should have no body'); my $modified_res = request( $t->get( url => '/not_modified' ) );