[mocha-developer] Mocking protected/private methods

Tammo Freese tammo at tammofreese.de
Sat May 10 18:18:25 EDT 2008


Hello all,


I have a question concerning mocha's handling
of protected and private methods. When expecting
such a method, the method is public in the test.

I expected the method to keep its original visibilty.
Is this intended behaviour, or a bug?


Thanks for your help,

Tammo Freese



More information about the mocha-developer mailing list