开发者

What are the pros and cons of rspec mocking versus other mocking frameworks? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 2 years ago.

Improve this question

I have seen a lot of outdated podcasts that mention mocha as a gem I would want to install because it does mocking better then rspec. I have a feeling that the rspec developers have caught on to this and have improved their mocking since then. However, in the default spec_helper.rb f开发者_运维知识库ile I see some commented out code stubs for three mocking frameworks

  • mocha
  • flexmock
  • rr

Upvote to anyone who can give me a decent answer as far as pros and cons on at least one of these frameworks versus rspec's own mocking framework.

I'll accept an answer if you can give me a break down on all three versus rpsec

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜