rspec 跳过指定测试
📝
内容提要
有些测试比较耗时间,而且很少被修改,如果能在测试的时候跳过它们就能让 spec 快不少。 跳过测试的方法很简单,spec 的 describe 方法可以给对应的测试加上标签,例如 describe SalesController, :slow => true do # specs end 接下来只要在 spec/spec_helper.rb...
➡️