rspec/rspec-core — comment on commit 5c73b8cfb3ea4e6a52431b2410ff1945692c9b33
File:  line 0
By justinko:

@dchelimsky the behavior of this method is to "empty" out the example groups and shared example groups. Now, would you typically set an expectation that `.clear` is passed to `example_groups` and `shared_example_groups`? I ask because what I just committed is basically verifying that Ruby's `clear` method works...which seems unnecessary. It's always kind of tough to decide if you should mock if the implementation code is so trivial.