small medium large xlarge

The latest version of the book is B4.0, released 24 days 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: B4.0 (16-Apr-17)
  • Fixed: 17-Apr-17, awaiting book release
#81411
Paper page: 15
"In this chapter, we’re going to show you that RSpec’s usefuless isn’t confined" should be "In this chapter, we’re going to show you that RSpec’...more...
  • Reported in: B4.0 (25-Apr-17)
  • Fixed: 26-Apr-17, awaiting book release
#81474
PDF page: 67
The 'Place the following code just inside the first context block:' seems to be wrong in my PDF - instead of: before do allow(ledger).to receive(...more...
Myron Marston says: Good catch, thanks!
  • Reported in: B4.0 (12-Apr-17)
  • Fixed: 17-Apr-17, awaiting book release
#81398
PDF page: 112
First sentence after section title "Helper Methods" : Sometimes, we get can get too clever for our own good ... --> we get can get ?! --Bernard...more...
  • Reported in: B4.0 (13-Apr-17)
  • Fixed: 18-Apr-17, awaiting book release
#81401
PDF page: 134
Third paragraph in section "Logging Example Descriptions" : First, open spec/support/db.rb and add the following lines to the end of it: require '...more...
Myron Marston says: Good catch! Thanks. Will be fixed in the next release.
  • Reported in: B4.0 (13-Apr-17)
  • Fixed: 17-Apr-17, awaiting book release
#81402
PDF page: 141
First line : However, as you spec suite grows and starts taking longer to complete --> your instead of you ? My eyes also stopped reading at ...more...
  • Reported in: B4.0 (13-Apr-17)
  • Fixed: 18-Apr-17, awaiting book release
#81404
PDF page: 146
Title of the green info box : Be Careful What You Load from spec_helper.rb --> sounds like a With/About/Of is missing ==> Be Careful With What Y...more...
Ian Dees says: Thank you for the suggestion here. In the interest of keeping the title brief, we've omitted the "With" (which in my understanding is optional specifically after the phrase "be careful"). We'll run this by our copy editor to make sure it's okay, though.
  • Reported in: B4.0 (13-Apr-17)
  • Fixed: 18-Apr-17, awaiting book release
#81405
PDF page: 150
Second to last paragraph : This example uses the Fuubar formatter, which is one of the more popular --> most instead of more ? (which expects a ...more...
Ian Dees says: Thank you for keeping us honest, Bernard! We're using the slightly older "one of the more" phrasing here, which is a little less forceful than "one of the most" in this particular situation. As with #81404, we'll verify with our copy editor to be sure.
  • Reported in: B4.0 (08-Apr-17)
  • Fixed: 17-Apr-17, awaiting book release
#81369
PDF page: 244
Middle of the page : >> expect(movie).to receive(:record_review).with('Good') I have restarted an IRB session, gave require 'rspec/mocks/standal...more...
Myron Marston says: Yep! As explained on #81372, we chose to not show the full context for that snippet, and we're working on some changes to make that more explicit.
  • Reported in: B4.0 (08-Apr-17)
  • Fixed: 17-Apr-17, awaiting book release
#81370
PDF page: 244

Also missing `imdb'

>> allow(imdb).to receive(:rating_for).and_return(3) # default
--BK

Myron Marston says: Yep! As explained on #81372, we chose to not show the full context for that snippet, and we're working on some changes to make that more explicit.
  • Reported in: B4.0 (08-Apr-17)
  • Fixed: 09-Apr-17, awaiting book release
#81372
PDF page: 246
Middle of the page after class BoxOffice : The good news is that that the hash_including constraint works just as well with --> twice "that". -...more...
Myron Marston says: Good catch! This'll be fixed (as well as another wrong use of "that that" which I found when addressing this) in the next release.
  • Reported in: B4.0 (08-Apr-17)
  • Fixed: 17-Apr-17, awaiting book release
#81373
PDF page: 248
Top of page, typing in IRB : > expect(client).to receive(:current_price).at_most(:twice).and_return(130.0) NameError: undefined local variable o...more...
Myron Marston says: In that chapter, many of the examples show isolated snippets that only work in a larger context that we intentionally do not show. Showing the complete context (including the definition of classes like StockTicker) would greatly bloat the examples and distract from the points we are trying to make in that section. We're working on some changes to make it more explicit which code snippets should work as-is and which require more context that we do not show. That should hopefully avoid this kind of confusion for other readers.
  • Reported in: B4.0 (10-Apr-17)
  • Fixed: 13-Apr-17, awaiting book release
#81383
PDF page: 266
Twice "that" in section Stubbing a Constant, paragraph after the code snippet : This pattern is useful enough that that RSpec provides a way to imp...more...
Myron Marston says: Yep! Thanks for asking, though.
  • Reported in: B4.0 (06-Apr-17)
  • Fixed: 06-Apr-17, awaiting book release
#81357
PDF page: 293
On the spec type cheat sheet, both model and job tests say "Database transactions and model fixtures (available for all spec types, but most relevant ...more...
Ian Dees says: Thank you, Josh! We'll make the change you suggest, so that the wording will be clearer.
  • Reported in: B4.0 (06-Apr-17)
  • Fixed: 23-Apr-17, awaiting book release
#81358
PDF page: 294
be_a_new is defined in terms of record.new_record? But be_a_new_record is defined instead in terms of record.persisted? Is that actually the case in t...more...
Myron Marston says: We fixed this in rspec-rails: https://github.com/rspec/rspec-rails/pull/1803 and I've updated the book appendix as well. Thanks!