[Rspec-devel] define_instance_method, stub_with, and mock_with

David Chelimsky dchelimsky at gmail.com
Mon Aug 28 00:27:08 EDT 2006

On 8/27/06, Brian Takita <brian.takita at gmail.com> wrote:
> > As for the idea you are presenting, in general, I think that mocking
> > methods on real instances is  a risky proposition.
> Yes, I agree with you about the partial mocking. mock_with was an alias of
> stub_with, but that has to do with inaccurately definining a mock.
> Using a stub to introduce a mock is useful though.

Agreed. That is more or less where I'm leaning for acts_as_mock.

More information about the Rspec-devel mailing list