rspec-style-guide
rspec-style-guide copied to clipboard
Recommend using `it_behaves_like` vs `include_examples`
trafficstars
The difference between the two is that the former creates a context, while the latter includes the examples and groups together with the context defined in the shared_examples that may lead to undesired consequences as overridden declarations.
I don't have good use cases for the latter in mind.