#23 new
James Mead

Provide Demeter-violating stubbing extension

Reported by James Mead | January 3rd, 2009 @ 01:13 PM

Rails association proxies and named-scopes are sometimes cumbersome to mock because of the necessary (?) train-wreck code. Flexmock provides a mechanism to make setting up stubs for such code terser. We should consider adding something like this to Mocha, but I think it should be an optional extension.

See http://groups.google.com/group/m...

See also "Mocking Law of Demeter Violations" section of Flexmock docs http://flexmock.rubyforge.org/

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