On Oct 30, 2008, at 4:05 PM, Pat Maddox wrote:
Scott Taylor <[EMAIL PROTECTED]> writes:
Actually, I take back my previous comment. Where would you stub a
method on an object where the method *isn't* even loaded by further
(or previous) stubbing?
Any concrete examples come to mind?
How about if you haven't implemented that object yet?
Of course, this also depends on what context.
Often in Rails I find myself using mocks when I have no need to - the
dependent object is already built, and I'm using a mock just so that I
don't hit the database at all.
Scott
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users