rspec/rspec-mocks — pull request #147 by Bodhisattva2-0 (2012-06-04 10:53:22+00:00)
Title: Issue #123 

Improved error message when user forgets to stub a method with default behavior. Based on this definition of 'with'.

"Constrains a stub or message expectation to invocations with specific arguments. With a stub, if the message might be received with other args as well, you should stub a default value first, and then stub or mock the same message using `with` to constrain to specific arguments."