loading...

re: How to minimize RSpec `describe`/`context` nesting VIEW POST

FULL DISCUSSION
 

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!

 

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 🤣

Code of Conduct Report abuse