#12 new
James Mead

[#21639] Allow stubs and expects to match multiple methods

Reported by James Mead | January 1st, 2009 @ 07:05 PM

Date: 2008-08-22 14:18 Opener: James Mead

As per Alain Ravet's request on the mailing list http://groups.google.com/group/m...

Maybe introduce a MethodMatcher class like the ParameterMatcher classes, but there might be some problems when it comes to doing this with partial mocks. In the case Alain describes, we'd need to redefine all the class methods on Factory that matched your regex so that we could intercept calls to any of them.

James.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A mocking & stubbing library for Ruby.

* <a href="http://github.com/floehopper/mocha">GitHub repository</a>
* <a href="http://mocha.rubyforge.org">Documentation</a>
* <a href="http://groups.google.com/group/mocha-developer">Mailing List</a>

People watching this ticket

Pages