ruby-on-rails - 自动测试失败, gem 规范无效

标签 ruby-on-rails autotest

我正在尝试运行自动测试,在某一时刻它对我有用,然后就停止了。我一直在关注 ruby​​ on Rails 教程。

lexi87$ autotest
Invalid gemspec in [/Users/lexi87/.rvm/gems/ruby-1.9.3-p374/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
Invalid gemspec in [/Users/lexi87/.rvm/gems/ruby-1.9.3-p374/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
loading autotest/rspec2
/Users/lexi87/rails_projects/sample_app/.autotest:1:in `require': cannot load such file -- autotest/growl (LoadError)
    from /Users/lexi87/rails_projects/sample_app/.autotest:1:in `<top (required)>'
    from /Users/lexi87/.rvm/gems/ruby-1.9.3-p374/gems/ZenTest-4.8.3/lib/autotest.rb:315:in `load'

因此,如果有人可以提供正确的步骤来让自动测试正常工作,那就太好了!谢谢

最佳答案

查看这个问题:Can't install ZenTest 4.8.4 看起来 ruby 有一个错误。建议的解决方案是将 zentest 降级到 4.8.3

关于ruby-on-rails - 自动测试失败, gem 规范无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14524419/

相关文章:

javascript - 我如何允许rails有javascript : in the data

ruby - 在 autotest 或 Guard 下安装、配置和运行 minitest 的简明方法

c# - WPF MVVM自动GUI测试-代码覆盖率

ruby-on-rails - Rails 4,设计 - 登录时的错误消息无法正常工作

ruby-on-rails - Ruby on Rails 中多列的索引

autotest - ZenTest 自动测试不运行测试

ruby-on-rails - 自动测试: "Could not run tests"。但日志中没有任何内容

ruby-on-rails - 为什么自动测试有时会在失败后立即重新运行所有规范?

ruby-on-rails - 使用 Rails 应用程序和 Vue.js 应用程序设置 Nginx + Passenger

python - MVC 框架从一种语言到另一种语言(例如 ASP.NET、Python、RoR 等)差异很大吗?