Index: simpletest_example/simpletest_example.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/examples/simpletest_example/simpletest_example.module,v
retrieving revision 1.3
diff -u -p -r1.3 simpletest_example.module
--- simpletest_example/simpletest_example.module	7 May 2010 02:09:53 -0000	1.3
+++ simpletest_example/simpletest_example.module	13 Sep 2010 23:27:57 -0000
@@ -4,7 +4,7 @@
 /**
  * @file
  * An example of simpletest tests to accompany the tutorial at
- * http://drupal.org/node/395012.
+ * http://drupal.org/node/890654.
  *
  * This is built on a traditional node-type implementation.
  *
@@ -55,9 +55,10 @@ function simpletest_example_node_access(
   // This code has a BUG that we'll find in testing.
 
   // This is the incorrect version we'll use to demonstrate test failure.
-  // The author had mistakenly always testing with User 1 so it always
-  // allowed access!
-  if ( ($op == 'delete')  && (user_access('extra special edit own simpletest_example', $account) && ($account->uid == $node->uid))) {
+  // The correct version should have ($op == 'update' || $op == 'delete').
+  // The author had mistakenly always tested with User 1 so it always
+  // allowed access and the bug wasn't noticed!
+  if ( ($op == 'delete')  && (user_access('extra special edit any simpletest_example', $account) && ($account->uid == $node->uid))) {
     return NODE_ACCESS_ALLOW;
   }
 
@@ -77,7 +78,7 @@ function simpletest_example_form($node, 
 /**
  * Implements hook_menu().
  *
- * Provide a form and explanation. Let the user turn on the error.
+ * Provide an explanation.
  */
 function simpletest_example_menu() {
   $items['examples/simpletest_example'] = array(
@@ -90,14 +91,12 @@ function simpletest_example_menu() {
 }
 
 /**
- * Form to allow turning off the logic error.
- * @param $form
- * @param $form_state
+ * Return an explanation of this module.
  */
 function _simpletest_example_explanation() {
 
   $explanation =  t("This Simpletest Example is designed to give an introductory tutorial to writing
-    a simpletest test. Please see the <a href='http://drupal.org/node/395012'>associated tutorial</a>.");
+    a simpletest test. Please see the <a href='http://drupal.org/node/890654'>associated tutorial</a>.");
   return $explanation;
 }
 
Index: simpletest_example/simpletest_example.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/examples/simpletest_example/simpletest_example.test,v
retrieving revision 1.4
diff -u -p -r1.4 simpletest_example.test
--- simpletest_example/simpletest_example.test	11 Aug 2010 23:20:31 -0000	1.4
+++ simpletest_example/simpletest_example.test	13 Sep 2010 23:27:57 -0000
@@ -4,7 +4,7 @@
 /**
  * @file
  * An example of simpletest tests to accompany the tutorial at
- * http://drupal.org/node/395012.
+ * http://drupal.org/node/890654.
  */
 
 class SimpletestExampleTestCase extends DrupalWebTestCase {
