DEV Community

Discussion on: How to minimize RSpec `describe`/`context` nesting

Collapse
 
philnash profile image
Phil Nash

I have found myself nesting things more and while I don't necessarily think it's as bad as your colleagues do, this has been a good reminder about shared contexts. Thanks!

Collapse
 
hanachin profile image
Seiei Miyagi

I don't necessarily think it's as bad as your colleagues do

ThanksπŸ‘

We try rubocop-rspec with following setting at new project.
rubocop-rspec.readthedocs.io/en/la...

# .rubocop.yml
RSpec/NestedGroups:
  Max: 2

The specs became so Ghekin-ish 🀣