X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FCookbook.pod;fp=lib%2FCatalyst%2FManual%2FCookbook.pod;h=ea85c86b1a32db47d90f6d3dedbc17ded3d21cfe;hp=16f37395d1567edc728648c1ca5bd02bea0b4aaa;hb=cacb3819a45beb62da8e38784e503e976e3ebb69;hpb=f9ce297698249b24617c5a60e7c625f2005be144 diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 16f3739..ea85c86 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -1894,7 +1894,7 @@ The first line declares how many tests we are going to run, in this case two. The second line tests and loads our application in test mode. The fourth line verifies that our application returns a successful response. -C exports two functions, C and C. Each can +L exports two functions, C and C. Each can take three different arguments: =over 4 @@ -1904,17 +1904,17 @@ take three different arguments: request('/my/path'); request('http://www.host.com/my/path'); -=item An instance of C. +=item An instance of L. request( URI->new('http://www.host.com/my/path') ); -=item An instance of C. +=item An instance of L. request( HTTP::Request->new( GET => 'http://www.host.com/my/path') ); =back -C returns an instance of C and C returns the +C returns an instance of L and C returns the content (body) of the response. =head3 Running tests locally @@ -1945,9 +1945,9 @@ C is the absolute deployment URI of your application. In C or C it should be the host and path to the script. -=head3 C and Catalyst +=head3 L and Catalyst -Be sure to check out C. It makes it easy to +Be sure to check out L. It makes it easy to test HTML, forms and links. A short example of usage: use Test::More tests => 6;