mocking to set expectations only

1 view
Skip to first unread message

Mathijs

unread,
Oct 2, 2008, 10:17:36 AM10/2/08
to mocha-developer
Hi,

Sometimes I want to make sure some method gets called, but don't want
to change its default behavior (so no returns 'clause')
Is there a way to do this?
Thanks,
Mathijs

Duncan Beevers

unread,
Oct 2, 2008, 1:31:23 PM10/2/08
to mocha-d...@googlegroups.com
Mocha currently has no provision for this type of mock proxy, though it has been discussed before.
For an example implementation have a look at Brian Takita's RR.

James Mead

unread,
Jan 4, 2009, 1:35:14 PM1/4/09
to mocha-d...@googlegroups.com
2008/10/2 Duncan Beevers <duncan...@gmail.com>

See Lighthouse ticket [1].
--
James.
http://blog.floehopper.org

[1] http://floehopper.lighthouseapp.com/projects/22289/tickets/10
Reply all
Reply to author
Forward
0 new messages