rspec 和 Rails 的 Shoulda 与 Remarkable

发布于 2024-09-05 06:29:55 字数 342 浏览 3 评论 0原文

我使用 rspec 和 cucumber 来实现 BBD。 现在我正在迁移到rails 3和rspec 2,并且我可以看到两个框架(shoulda和卓越)都支持rails 3和rspec 2。

我从未使用过shoulda或卓越。

我应该更喜欢与 rspec 一起使用什么: 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

往事随风而去 2024-09-12 06:29:55

我想我会选择卓越,因为它是专门为 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.

水溶 2024-09-12 06:29:55

只是一个更新,因为 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文