Displaying 1 result from an estimated 1 matches for "do_other_thing".
2007 Apr 11
4
Feature request... I think...
Folks-
I just started using Mocha and I wanted to try something but I
couldn''t get it to work. I''m coming from the Java world, so my
approach may not be optimal for Ruby.
Say I''m testing a.do_something() which calls b.do_other_thing() twice,
but I really don''t want to change b.do_other_thing(), just ''expect'' it
to be called twice. I know I can b.expect(:do_other_thing).times(2)
but it changes the whole method. Unless I''m doing something wrong, I
can''t do this in mocha.
I know its...