X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcatalyst-action-rest-action-dispatch.t;h=348966b8a17e9eeaf0638306ed0d56e6458d0765;hb=5213846dc53c8fdcb6de11243fad7e40378624e7;hp=a09269014840ab3958eb2503064f13af38aed814;hpb=2c34d7cb1b9539e5ac877db137ea7b2ef8f93d4c;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git diff --git a/t/catalyst-action-rest-action-dispatch.t b/t/catalyst-action-rest-action-dispatch.t index a092690..348966b 100644 --- a/t/catalyst-action-rest-action-dispatch.t +++ b/t/catalyst-action-rest-action-dispatch.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 21; +use Test::More 0.88; use FindBin; use lib ( "$FindBin::Bin/lib", "$FindBin::Bin/../lib" ); @@ -42,3 +42,21 @@ foreach my $method (qw(GET DELETE POST PUT OPTIONS)) { ); } +my $res = request( + $t->put( + url => '/actions/test', + data => '', + ) +); +is( + $res->header('Using-Action'), + 'STATION', + "went through action for dispatching to PUT" +); +is( + $res->header('Using-Sub-Action'), + 'MOO', + "went through sub action for dispatching to PUT" +); + +done_testing;