RSpec Shared Example Groups | DRY Up Your Specs

Описание к видео 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.

RSpec docs on shared example groups: https://relishapp.com/rspec/rspec-cor...

View the source: https://github.com/brettchalupa/scree...

Комментарии

Информация по комментариям в разработке