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?

It would only work if given a concrete class name (i.e. mock(Foo) as opposed to mock('foo'))

No idea why you couldn't pass a flag for regression testing:

mock(Foo, :check_methods => true)

Scott

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to