X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FTesting.pod;h=0ff79165b619bc41833844b6b1f2c50de35ccf05;hb=c9b77c06a0de97f1d6e9a66091e693a637578357;hp=695d9fb1efd3f8f2ddfd70a8af89fbc54be81d43;hpb=d645910ddfb37f5c18acaf6ce88fd392a91101db;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Manual/Tutorial/Testing.pod b/lib/Catalyst/Manual/Tutorial/Testing.pod index 695d9fb..0ff7916 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@4614 . - IMPORTANT: Does not work yet. Will be completed for final version. + svn co http://dev.catalyst.perl.org/repos/Catalyst/tags/examples/Tutorial/MyApp/5.7/Testing MyApp =head1 RUNNING THE "CANNED" CATALYST TESTS @@ -220,7 +219,9 @@ editor and enter the following: $ua1->title_is("Book Created", "Book created title"); $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"); + $ua1->content_contains("with a rating of 2.", "Check rating added"); + # Try a regular expression to combine the previous 3 checks & account for whitespace + $ua1->content_like(qr/Added book 'TestTitle'\s+by 'Stevens'\s+with a rating of 2./, "Regex check"); # Make sure the new book shows in the list $ua1->get_ok("http://localhost/books/list", "'test01' book list"); @@ -319,7 +320,7 @@ before. Kennedy Clark, C Please report any errors, issues or suggestions to the author. The -most recent version of the Catlayst Tutorial can be found at +most recent version of the Catalyst Tutorial can be found at L. Copyright 2006, Kennedy Clark, under Creative Commons License