We cover:

  • An overview of the project you’ll be building
  • Setting up RSpec for a real project
  • How to get started writing acceptance specs
  • How to mark work in progress

Chapter 4Starting On the Outside: Acceptance Specs

You’ve seen the basic parts of RSpec: example groups, examples, and expectations. Now, you’re going to put those pieces together as you build and test a real application.

In this chapter, we’ll pick a problem to solve and sketch out the major pieces of the solution. As you follow along, you’ll create a new project and start testing it with RSpec. You’ll start with acceptance specs, which check the behavior of the application as a whole. By the end of the chapter, you’ll have the skeleton of a live app and a spec to test it—plus some ...

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.