轨道 3 + Rspec 2 +自动测试:自动测试风格 Rspec2 似乎不存在?
我更新了我的 ruby gem,突然自动测试停止工作。
经过多次尝试修复而没有任何调试信息,我知道有这个:
$ autotest
loading autotest/rails_rspec2
You don't have i18n installed in your application. Please add it to your Gemfile and run bundle install
Autotest style autotest/rails_rspec2 doesn't seem to exist. Aborting
有什么解决方案吗?
I updated my ruby gem and suddenly Autotest stopped to work..
After many attempts to fix without any debug information, I know have this:
$ autotest
loading autotest/rails_rspec2
You don't have i18n installed in your application. Please add it to your Gemfile and run bundle install
Autotest style autotest/rails_rspec2 doesn't seem to exist. Aborting
Any solution for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也有同样的问题。就我而言,
bundle update
解决了这个问题。 (现在使用 rspec 2.6.0、rspec-rails 2.6.1 和 rspec-core 2.6.3)I had the same problem. In my case
bundle update
solves the issue. (with rspec 2.6.0, rspec-rails 2.6.1 and rspec-core 2.6.3 now)我将 Gemfile 更改为 rspec-rails 2.7.0、rspec-core 2.7.1 并运行捆绑安装,这为我解决了问题。
3.1.1 运行轨道如果您感兴趣的话,还可以使用 spork 0.9.0.rc9。
I changed my Gemfile to rspec-rails 2.7.0, rspec-core 2.7.1 and ran bundle install which solved the problem for me.
Running rails 3.1.1. Also spork 0.9.0.rc9 if that interests you.