From: Jonathan "Duke" Leto Date: Mon, 7 Mar 2011 15:20:13 +0000 (-0800) Subject: Improve the documentation for various functions in Catalyst::Test X-Git-Tag: 5.80033~36 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=0bf3b41caa076beabccbb8f486ffddc1991d4f81 Improve the documentation for various functions in Catalyst::Test --- diff --git a/lib/Catalyst/Test.pm b/lib/Catalyst/Test.pm index d0977a3..8be790c 100644 --- a/lib/Catalyst/Test.pm +++ b/lib/Catalyst/Test.pm @@ -344,25 +344,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