Displaying 1 result from an estimated 1 matches for "otherargu".
Did you mean:
otherarg2
2008 Jun 02
1
Cherry-picking mocks?!
...erified, but the other calls would just be stubbed.
Now after today''s question, and understanding how expect_render and
mock_render differ from normal expectations, these seem to be related.
Maybe we should be able to say something like:
something.expects(:foo).with(someArguments).with(otherArguments).otherwise(:stub)
something_else.expects(:bar).with(arguments).otherwise(:pass) # if the
arguments don''t match pass the method to the real object
Which is really just a strawman to see if a discussion ensues. There are
other issues like providing return values, and perhaps opt...