我测试中有这个
Project.should_receive(:find).with(@project).and_return(@project)
但是当对象两次收到该方法调用时,我必须做
Project.should_receive(:find).with(@project).and_return(@project)
Project.should_receive(:find).with(@project).and_return(@project)
有什么办法怎么说
Project.should_receive(:find).with(@project).and_return(@project).times(2)
any_instance
?