From: Kennedy Clark Date: Sun, 15 Nov 2009 13:53:16 +0000 (+0000) Subject: Add a "negative" test to confirm that test02 does not have an admin create link X-Git-Tag: v5.8005~86 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=87058ad44d035b5c60be933ea3f5f236f36c912e Add a "negative" test to confirm that test02 does not have an admin create link --- diff --git a/lib/Catalyst/Manual/Tutorial/08_Testing.pod b/lib/Catalyst/Manual/Tutorial/08_Testing.pod index 95bb753..a3889b4 100644 --- a/lib/Catalyst/Manual/Tutorial/08_Testing.pod +++ b/lib/Catalyst/Manual/Tutorial/08_Testing.pod @@ -271,7 +271,9 @@ editor and enter the following: $_->content_contains("/logout\">User Logout", "Both users should have a 'User Logout'") for $ua1, $ua2; $ua1->content_contains("/books/form_create\">Admin Create", - "Only 'test01' should have a create link"); + "'test01' should have a create link"); + $ua2->content_lacks("/books/form_create\">Admin Create", + "'test02' should NOT have a create link"); $ua1->get_ok("http://localhost/books/list", "View book list as 'test01'");