X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FTesting.pod;fp=lib%2FCatalyst%2FManual%2FTutorial%2FTesting.pod;h=7f558172229df2bca7ed21260fb677545e028013;hp=2b771b3f79a0b2f6607e25d3b086f1d10cdb0812;hb=028b4e1a01c7fee31bcee0c3b44cb12958b61222;hpb=94d8da411a980c822af29da44d4cbf62a72c25c1 diff --git a/lib/Catalyst/Manual/Tutorial/Testing.pod b/lib/Catalyst/Manual/Tutorial/Testing.pod index 2b771b3..7f55817 100644 --- a/lib/Catalyst/Manual/Tutorial/Testing.pod +++ b/lib/Catalyst/Manual/Tutorial/Testing.pod @@ -77,15 +77,28 @@ directory, enter: $ prove --lib lib t -There will be a lot of output because we have the C<-Debug> flag enabled -in C (see the C tip below for a quick -and easy way to reduce the clutter). Look for lines like this for -errors: +There will be a lot of output because we have the C<-Debug> flag +enabled in C (see the C tip below for +a quick and easy way to reduce the clutter). Look for lines like this +for errors: # Failed test 'Request should succeed' # in t/controller_Books.t at line 8. # Looks like you failed 1 test of 3. +B Depending on the versions of various modules you have +installed, you might get some C warnings -- you can +ignore these. If you are following along in Ubuntu 8.10, you can +prevent them by adding C above line 49 in +C to match the following: + + ... + { no strict qw( refs ); + no warnings; + $argnames = \@{"$class\::BASEARGS"} || [ ]; + } + ... + The redirection used by the Authentication plugins will cause several failures in the default tests. You can fix this by making the following changes: @@ -212,7 +225,7 @@ editor and enter the following: "Check we ARE logged in" ) for $ua1, $ua2; # 'Click' the 'Logout' link (see also 'text_regex' and 'url_regex' options) - $_->follow_link_ok({n => 1}, "Logout via first link on page") for $ua1, $ua2; + $_->follow_link_ok({n => 4}, "Logout via first link on page") for $ua1, $ua2; $_->title_is("Login", "Check for login title") for $ua1, $ua2; $_->content_contains("You need to log in to use this application", "Check we are NOT logged in") for $ua1, $ua2;