[mocha-developer] mocking or stubbing a private method

Haakon Sorensen haakon at amazon.com
Wed Sep 13 03:38:13 EDT 2006

Is there any way to mock or stub a private method on an instance?  When I try, I 
get the message "Exception: undefined method 'foo' for #<MyClass:0xb721cbc8>. 
Thanks for the help,


More information about the mocha-developer mailing list