Vim:使用rails.vim,如何使rails.vm使用rspec而不是testunit?
我正在使用rails.vim,当我在模型文件上使用 :A 时,它会打开相应的 testunit 文件。如何让它打开相应的rspec文件?
I'm using rails.vim and when I use :A on a model file, it opens the corresponding testunit file. How do I make it open the corresponding rspec file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Rails.vim 将首先加载 test/unit(如果存在),然后加载 rspec。
因此,修复您最常使用的框架,并将您的内容保存在测试或规范文件夹中。
Rails.vim will load test/unit first (if it exists), then rspec.
So, fix the framework you use most often and keep your stuff in either the test or spec folders.