O'Reilly logo

Effective Testing with RSpec 3 by Myron Marston, Ian Dees

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required