X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FTesting.pod;h=95e38e909087699355141ced1832256f1665e03e;hb=13852f978caf002dab00728e7f6d03c30c3c9560;hp=6d7d37b15d72bb13594fffd330845d9f570a9fc6;hpb=cc548726047214bd2b51a6b3a287896ac65b7b9b;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Manual/Tutorial/Testing.pod b/lib/Catalyst/Manual/Tutorial/Testing.pod index 6d7d37b..95e38e9 100644 --- a/lib/Catalyst/Manual/Tutorial/Testing.pod +++ b/lib/Catalyst/Manual/Tutorial/Testing.pod @@ -61,8 +61,7 @@ B: Note that all of the code for this part of the tutorial can be pulled from the Catalyst Subversion repository in one step with the following command: - svn checkout http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial@### - IMPORTANT: Does not work yet. Will be completed for final version. + svn checkout http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial@4614 . =head1 RUNNING THE "CANNED" CATALYST TESTS @@ -155,13 +154,13 @@ editor and enter the following: # all tests. Better to replace "'no_plan'" with "tests => 30" so it # knows exactly how many tests need to be run (and will tell you if # not), but 'no_plan' is nice for quick & dirty tests - + use Test::More 'no_plan'; # Need to specify the name of your app as arg on next line # Can also do: # use Test::WWW::Mechanize::Catalyst "MyApp"; - + use ok "Test::WWW::Mechanize::Catalyst" => "MyApp"; # Create two 'user agents' to simulate two different users ('test01' & 'test02') @@ -218,7 +217,8 @@ editor and enter the following: $ua1->get_ok("http://localhost/books/url_create/TestTitle/2/4", "'test01' formless create"); $ua1->title_is("Book Created", "Book created title"); - $ua1->content_contains("Added book 'TestTitle' by 'Stevens'", "Check added OK"); + $ua1->content_contains("Added book 'TestTitle'", "Check title added OK"); + $ua1->content_contains("by 'Stevens'", "Check author added OK"); $ua1->content_contains("a rating of 2.", "Check rating added"); # Make sure the new book shows in the list @@ -317,7 +317,9 @@ before. Kennedy Clark, C -Please report any errors, issues or suggestions to the author. +Please report any errors, issues or suggestions to the author. The +most recent version of the Catlayst Tutorial can be found at +L. Copyright 2006, Kennedy Clark, under Creative Commons License (L).