From: Pit Capitain Date: 2003-06-05T03:25:43+09:00 Subject: Re: Test::Unit::MockObject not working On 4 Jun 2003 at 9:13, Shashank Date wrote: > tmObj.setCallOrder(:on, :off) 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 ... > C:/ruby/lib/ruby/site_ruby/1.8/test/unit/assertions.rb:31:in `assert_block': > Call order assertion failed: Unexpected method :on called from ... the second call of :on is unexpected. Regards, Pit