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

Your Turn

In this chapter, we looked at two ways to configure RSpec: the command-line options and the configure method. Command-line options are easy to discover, and they’re great for one-off changes to RSpec’s behavior. The configure method covers more of RSpec’s behavior and gives you finer-grained control over how RSpec runs.

We’re not asking anyone to memorize the entire set of configuration options. But the ones we’ve shown you here will help you turn RSpec into a comfortable, productive working environment.

Exercises

Now that you’ve seen what a wide array of configuration options RSpec offers, try your hand at using a few of them in these exercises.

Using a Custom Formatter

Find and read the documentation for the following RSpec formatters ...

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