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:

  • How to change RSpec’s behavior at the command line
  • How to customize RSpec’s output
  • Where to save your commonly used command-line options
  • How to configure RSpec in code
  • Which configuration options will be useful on your projects

Chapter 9Configuring RSpec

As you’ve worked through the exercises in this book, you’ve often changed RSpec’s behavior to make it a better tool for your needs. Here are just a few of the things you’ve customized RSpec to do for you:

  • Set up and tear down a test database, but only for the examples that require one

  • Report every failing expectation in an example, not just the first one

  • Run just the examples that you’re focusing on at the moment

In this chapter, we’re going to connect the dots between all these individual ...

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