small medium large xlarge

Errata for The Cucumber Book

 

The latest version of the book is P3.0, released over 2 years 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.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P2.0 (16-Feb-14)
#76415
PDF page: 4

Footnote 3

h..p://behaviour-driven.org/

displays :

502 Bad Gateway

--Bernard Kaiflin

  • Reported in: P2.0 (24-May-13)
#51603
PDF page: 8

"When the team write their acceptance tests collaboratively"
should be either:
- "the team writes"
or
- "teams write"--Sean P. DeNigris

  • Reported in: P2.0 (30-Nov-13)
#53252
Paper page: 19
The book suggest to write this Then /^The output should be "([^"]*)"$/ do |expected_output| @output.should == expected_output #pending # ex...more...
  • Reported in: P2.0 (21-Mar-14)
#76558
PDF page: 25
Paper page: 13

You should point out that "show-guests" needs to come =before= "home", otherwise "home" will not be able to see "show-guests"!--Blake Watson

  • Reported in: P3.0 (20-Jul-14)
#77026
PDF page: 26
Last paragraph "When the team write their acceptance tests collaboratively" replace "write" with "writes" (or "team" with "teams").--unitytechgroup.co...more...
  • Reported in: P2.0 (20-Nov-13)
#53187
PDF page: 28
Tocino grueso! (Chunky Bacon!) should be Tocino grueso! (Thick Bacon!). Thick bacon is the proper spanish/english translation. Rick Flores--Rick Fl...more...
  • Reported in: P1.0 (27-Nov-12)
#50216
PDF page: 34
According to google translate the word regnskapsførerere does not have an english counterpart. When I remove the last "re" it appears to be accountan...more...
  • Reported in: P3.0 (20-Jul-14)
#77027
PDF page: 37
Paper page: 20
When running cucumber, getting: DEPRECATION: Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is d...more...
  • Reported in: P3.0 (21-Jul-14)
#77033
PDF page: 65
Paper page: 49
Description of \b in the "Useful Shorthand Character Classes" top box is wrong. It's a zero-width match anchor. Sounds like you are describing \W inst...more...
  • Reported in: P2.0 (18-Feb-14)
#76438
PDF page: 69

Error 404 for footnote 2 h..p://cukes.info/cucumber/api/ruby/latest/Cucumber/Ast/Table.html--Bernard Kaiflin

  • Reported in: P1.0 (02-Nov-12)
#50121
PDF page: 78

"they're a reading"--Trevor Harmon

  • Reported in: P1.0 (02-Nov-12)
#50122
PDF page: 96

"with an features"--Trevor Harmon

  • Reported in: P2.0 (06-Mar-14)
#76487
Paper page: 122
Missing code when adding instance variable. Error: @my_account.balance.should eq(amount),"Expected the balance to be #{amount}" Should be: @my_a...more...
  • Reported in: P2.0 (19-Feb-14)
#76439
PDF page: 124

Error 404 for footnote 1 h..p://cukes.info/cucumber/api/ruby/latest/Cucumber/RbSupport/RbWorld.html
--Bernard Kaiflin

  • Reported in: P1.0 (06-Oct-12)
#49928
PDF page: 148

broken linkto github for Cucumber::Ast::Scenario at the bottom of the page (footnote [4])
--Iain Wood

  • Reported in: P1.0 (10-Jan-13)
#50455
Paper page: 151
Quick note before description - I wasnt able to select the correct version of the book, the one i am reading is P2.0 August 2012. Just finishing up...more...
  • Reported in: P1.0 (19-Dec-12)
#50397
PDF page: 151
Cucumber scenario always fails when using RackTest driver and the following tag: <button type="submit">Withdraw</button> Possible workaround: use S...more...
  • Reported in: P3.0 (31-Jul-14)
#77086
PDF page: 197
Between the 2nd and 3rd paragraphs of section 11.5, there's an example run of cucumber: $ cucumber --wip @wip:3 That doesn't work (in v1.3.15, a...more...
  • Reported in: P2.0 (29-Aug-13)
#52494
PDF page: 231-2
There is a list that spans from page 231-2 and "config/cucumber.yml" is the first and last thing in the list, but with different descriptions. --Anna...more...
  • Reported in: P1.0 (05-Dec-12)
#50266
PDF page: 231
Just after adding the necessary gems in the Gemfile there is the command to generate the cucumber files and folders with cucumber:install: $ cd squ...more...
  • Reported in: P1.0 (05-Dec-12)
#50271
PDF page: 231
Should the javascript runtime environment gems should also be added to the Gemfile? If not there is the following error message: ~/.rvm/gems/ruby-...more...
  • Reported in: P2.0 (24-Dec-13)
#56865
PDF page: 232
With newer FactoryGirl : Download rails/02/features/step_definitions/user_steps.rb Given /^there is a User$/ do FactoryGirl.create(:user)<-----Ori...more...
  • Reported in: P2.0 (29-Aug-13)
#52498
PDF page: 236
FactoryGirl is a gem and has no gender. Please don't personify it in your writing. "poor old FactoryGirl complains that she doesn’t know..."--Anna Ca...more...
  • Reported in: P2.0 (22-May-13)
#51558
PDF page: 245

The test examples in Chapter 15, as printed, keep complaining of a Mass Assignment Error. Therefore, we never actually see it working :)--Brett Giles

  • Reported in: P2.0 (09-May-13)
#51485
PDF page: 248
code snippet capybara/00/features/step_definitions/user_steps.rb at page 248 is Wrong: Error line: message_attrs.merge({:user => user}) Correc...more...
  • Reported in: P1.0 (02-Dec-12)
#50227
PDF page: 251

Book says:

so all we need to add is a field with a name="criteria" attribute

"criteria" should be "query" ?
--Perry Smith

  • Reported in: P1.0 (29-Nov-15)
#79244
Paper page: 251

name="criteria"
should be
name="query"

  • Reported in: P1.0 (02-Dec-12)
#50228
PDF page: 253
Page 253-254 has a code snippet split across a page break. With your formatting tools, can you give some weight to not breaking code snippets across ...more...
  • Reported in: P2.0 (14-Feb-13)
#50823
PDF page: 260
This is the chapter on testing javascript enabled web pages. The examples all print with the error: Can’t mass-assign protected attributes: user (...more...
  • Reported in: P1.0 (02-Dec-12)
#50229
PDF page: 261
The "Running Capybara Against Non-Ruby Applications" box... Does this imply that you could point app_host to your staging or even your production s...more...
  • Reported in: P1.0 (03-Apr-13)
#51206
Paper page: 267
As of Capybara 2.0, a call to _find_ gives an _ambiguous match_ error when more than one element is found in the page. Because of that, using _find_ h...more...
  • Reported in: P2.0 (19-May-13)
#51545
PDF page: 268
Capybara 2.0 results in an _ambiguous match_ error when find('ol.results li') is called (as reported in erratum 51206. An easier fix than the one sugg...more...