search for: 7986fd91

Displaying 1 result from an estimated 1 matches for "7986fd91".

Did you mean: 798691
2006 Nov 22
2
.class call to the mock object (or any existing methods)
Hi I run into problem trying to set expectations for the mockobject.class method, I had to undefine a method before I could set some expectation. Is there any better way of doing it? object = mock() .... klass = class <<object; self; end klass.send(:undef_method, "class") # I had to do this because Mocha utilizes "method_missing(symbol, *arguments, &block) "