开发者

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

开发者 https://www.devze.com 2023-01-31 12:05 出处:网络
Is there a Mocha equivalent of Rspec’s “mock().开发者_开发技巧as_null_object”?Yes. Use “stub_everything()”

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

精彩评论

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