On Thu, Jun 5, 2008 at 5:46 AM, Doug Livesey <[EMAIL PROTECTED]> wrote: > I have two questions with it. The first is, would it be possible to set > it up to test the case when each_row operates on an empty Array?
If there were no rows, each_row wouldn't yield at all, so you should just be able to do @o.stub! :each_row (with no and_yield). Note that Ruby is happy to let you associate a block with any method call, whether it's expected or not. -hume. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users