rspec-style-guide icon indicating copy to clipboard operation
rspec-style-guide copied to clipboard

Recommend using `it_behaves_like` vs `include_examples`

Open pirj opened this issue 6 years ago • 0 comments
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.

pirj avatar Nov 23 '18 10:11 pirj