Indi
Aiur · Zellux 的博客 blog.yxwang.me

有些测试比较耗时间,而且很少被修改,如果能在测试的时候跳过它们就能让 spec 快不少。 跳过测试的方法很简单,spec 的 describe 方法可以给对应的测试加上标签,例如 describe SalesController , :slow => true do # specs end 接下来只要在 spec/spec_helper.rb 中声明跳过这个标签即可: RSpec . config…

讨论

还没有评论,来说第一句吧。

Aiur · Zellux 的博客 的其他文章