开发者

Is there a Mocha equivalent of Rspec’s “mock().as_null_object”?

Is there a Mocha equivalent of Rspec’s “mock().开发者_开发技巧as_null_object”?


Yes. Use “stub_everything()”

Documented here: http://mocha.rubyforge.org/classes/Mocha/API.html#M000004.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜