A Note on Versions

The libraries we’re using in this book, both the ones from the RSpec framework and other dependencies like Sinatra and Sequel, are designed to be backward-compatible across minor version upgrades. The code examples you see here should work just fine in future versions of these libraries—at least until their next major versions.

While we’ve tested this code on multiple Ruby versions as far back as Ruby 2.2, you’ll have the best experience if you follow along with the exact same versions we call out in the text: Ruby 2.4, RSpec 3.6, and so on. With the same versions we use, you should get output that closely mirrors what we show in the book.

Get Effective Testing with RSpec 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.