X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FTest.pm;fp=lib%2FCatalyst%2FTest.pm;h=9f109052c584e5b430a2950f87304606b100df9d;hp=9a771122597f881b7d7f790bab87f1a77f853901;hb=c41956b0b05a9062149d05801f76b26c2db77c5b;hpb=2a2c99c6e3697340b01a86305ae2b64cf3fb9aa5 diff --git a/lib/Catalyst/Test.pm b/lib/Catalyst/Test.pm index 9a77112..9f10905 100644 --- a/lib/Catalyst/Test.pm +++ b/lib/Catalyst/Test.pm @@ -388,25 +388,29 @@ sub _customize_request { } } -=head2 action_ok +=head2 action_ok($url [, $test_name ]) -Fetches the given URL and checks that the request was successful. +Fetches the given URL and checks that the request was successful. An optional +second argument can be given to specify the name of the test. -=head2 action_redirect +=head2 action_redirect($url [, $test_name ]) -Fetches the given URL and checks that the request was a redirect. +Fetches the given URL and checks that the request was a redirect. An optional +second argument can be given to specify the name of the test. -=head2 action_notfound +=head2 action_notfound($url [, $test_name ]) -Fetches the given URL and checks that the request was not found. +Fetches the given URL and checks that the request was not found. An optional +second argument can be given to specify the name of the test. -=head2 content_like( $url, $regexp [, $test_name] ) +=head2 content_like( $url, $regexp [, $test_name ] ) -Fetches the given URL and returns whether the content matches the regexp. +Fetches the given URL and returns whether the content matches the regexp. An +optional third argument can be given to specify the name of the test. -=head2 contenttype_is +=head2 contenttype_is($url, $type [, $test_name ]) -Check for given MIME type. +Verify the given URL has a content type of $type and optionally specify a test name. =head1 SEE ALSO