Part 1Getting Started

Welcome to RSpec! In this part of the book, you’re going to get acquainted with the framework as you write your first few working tests.

First, you’ll install RSpec and write your first few specs—RSpec’s lingo for tests. RSpec’s API is all about deciding how you want your code to behave and expressing that decision in your specs. Once you’ve got the basics down, we can’t resist showing you a few of the things that make RSpec special.

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.