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.
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.
精彩评论