Shared Examples: it_behaves_like vs include_examples context limits
RSpec provides two primary methods for applying shared examples to a test suite: it_behaves_like and include_examples . While both facilitate test reuse, they differ in how they handle the execution context and the resulting output in the documentation formatter. The goal is to maintain a clean test hierarchy while ensuring that shared tests have access to t