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

Different Types of Specs

Our goal as developers is to write specs that maximize the values we’ve listed here—guiding the design, building confidence, and so on—while minimizing the time lost to writing, running, and fixing them.

Every spec has a job to do. These jobs fall into different categories: catching regressions in an application, guiding the design of a single class or method, and so on.

The software development community continually argues about how many of these categories there are, and their exact definitions. While these endless arguments and subcategories are fun to ponder, we recommend focusing on just a few different, well-defined types of specs. That way, you’ll end up intentionally picking what to write at any given moment, ...

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