rspec 和 Rails 的 Shoulda 与 Remarkable
我使用 rspec 和 cucumber 来实现 BBD。 现在我正在迁移到rails 3和rspec 2,并且我可以看到两个框架(shoulda和卓越)都支持rails 3和rspec 2。
我从未使用过shoulda或卓越。
I'm using rspec and cucumber for BBD.
Now I'm migrating to rails 3 and rspec 2 and as I could see both of frameworks (shoulda and remarkable) support rails 3 and rspec 2.
I have never used shoulda or remarkable.
What should I prefer to use with rspec: shoulda or remarkable? And why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想我会选择卓越,因为它是专门为 Rspec 创建的。而且还极其完整。而 Shoulda 的创建是为了在 Test::Unit 中获取 rspec 样式的匹配器。
只是我的 2 美分。
[更新] 差不多两年后,我很遗憾地注意到卓越处于可怕的状态。对于 Rails 3.x,您仍然必须使用 Beta Gems。我希望这会很快改变或改善(不太可能),但目前我只能建议使用 Shoulda。
I think i would go for remarkable, since it is created especially for Rspec. Also it is extremely complete. Whereas Shoulda was created to get the rspec-style matchers inside Test::Unit.
Just my quick 2 cents.
[UPDATE] almost two years later, I am sorry to notice that remarkable is in a dreadful state. For rails 3.x you still have to use beta gems. I hope this will change or improve soon (unlikely), but for the moment I can only advise to use Shoulda.
只是一个更新,因为 Rails 世界发展得如此之快:Shoulda 似乎已经吸引了三倍的观察者、两倍的分叉和一倍半的贡献者。 Remarkable 的最后一次提交是在一年前,而 Shoulda 的提交是在这个月内。也就是说,最后 5 个贡献基本上都是小错误或小修改。
Just an update, since the Rails world moves so fast: Shoulda seems to have garnered three times as many watchers, two times as many forks, and one and half as many contributors. Remarkable's last commit was over a year ago, and shoulda's was within this month. That said the last 5 contributions were basically small bugs or minor touch ups.