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