seattlerb/minitest — pull request #457 by ggarnier (2014-09-04 17:23:53+00:00)
Title: Adding "remove_expectations" method to Minitest::Mock

I've added a new method to remove all expectations on a specific method:

@mock.expect(:meaning_of_life, 42)
@mock.meaning_of_life # => 42

@mock.remove_expectations(:meaning_of_life)
@mock.meaning_of_life # raises MockExpectationError