The latest version of the book is P3.0, released 3 months ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.
By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:
If you've found a new error, please submit it.
- Reported in: P1.0 (21-Feb-14)
PDF page: 126
On this page we're adding code to Cucumber's env.rb, to modify ENV['HOME'] so a test won't touch the user's real todo list. Paragraph three begins, "As you can see, we create a fresh, empty directory and point ENV['HOME']to it." Actually, the code only removes the old fake_home directory. It does *not* create a new one, and this omission causes the test to fail. To fix the code, insert this line after the directory is removed: