【问题标题】:autotest failed with invalid gem spec自动测试失败,宝石规格无效
【发布时间】:2013-01-27 19:23:39
【问题描述】:

我正在尝试运行自动测试,有一次它对我有用,然后它停止了。我一直在关注 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'

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

【问题讨论】:

标签: ruby-on-rails autotest


【解决方案1】:

看到这个问题:Can't install ZenTest 4.8.4 看起来红宝石中存在错误。建议的解决方案是将 zentest 降级到 4.8.3

【讨论】:

  • 谢谢。我之前读过它并按照答案进行操作,但它没有用。但是,当您将我推荐给它时,我检查了 cmets,并且不得不删除 gemspec 文件。谢谢
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-10-19
  • 2019-05-16
相关资源
最近更新 更多