RSpec Shared Example Groups | DRY Up Your Specs

preview_player
Показать описание
RSpec has a nifty featured called Shared Example Groups that lets you reuse expectations across many specs. This makes your code easier to change, better ensures behavior, and reduces repeated spec code.

It's a feature of RSpec that can take a little bit to get the hang of, but it's extremely useful.

Рекомендации по теме