We cover:
Over the course of this book, you’ve followed a key principle that has made your specs faster, more reliable, and easier to use: run just the code you need. This principle shows up in several practices you’ve been using as you’ve followed along with the code examples:
A key piece of RSpec that’s made many of these practices possible is its powerful metadata system. Metadata undergirds many of RSpec’s features, and RSpec exposes the same system for your use.
You’ve used metadata several times so far in your examples. In this chapter, we’ll take a closer look into how it works. By the end, you’ll understand enough to dictate exactly when and how your specs run.