From: Shashank Date Date: 2003-06-05T09:02:27+09:00 Subject: Re: Test::Unit::MockObject not working (like _I_ want it to) > > Here you said you expect two method calls... > > > tmObj.strictCallOrder = true > > tmObj.activate > > > > 2.times { > > p tmObj.on > > p tmObj.off > > } > > ... and here you actually call 4 methods, so ... > My bad ! I should have made it clear (especially in the subject line) that I ** know ** why it is raising the error. That much I expected. I just want to know, further, if there is any way to handle repetitions like these. That is what I meant when I said earlier: > I thought I would be able to use it for calls in a loop. But that is not > how it works. So it seems to me that CallOrder is limited to ** single ** execution of the specified methods in that order. Correct ? -- shanko