filmov
tv
RSpec Shared Example Groups | DRY Up Your Specs
Показать описание
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.
It's a feature of RSpec that can take a little bit to get the hang of, but it's extremely useful.