mockObject.expect.times(2) :method,[return_1 first time,return_2 second time] mockObject.verify
有没有办法实现这个目标?
expect
mockObject.expect :method,return_1,[first,time,args] mockObject.expect :method,return_2,[second,args] # run your code using the mock object mockObject.verify