自动测试问题
我刚刚安装了 Zentest 4.4.6,其中包括自动测试 4.4.6,当我运行自动测试时,出现以下错误:
gems/ZenTest-4.6.0/lib/autotest.rb:226:in `autodiscover': undefined method `any?' for Gem::Specification:Class (NoMethodError)
嗯?就像它恢复到没有 Rails 的 ruby 一样
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不懂日语,但看
http://d.hatena.ne.jp/hkj /20110724
我了解到,您可以通过将第 226 行从: 更改
为
此行最后一次修改是在本次提交中: https://github.com/seattlerb/zentest/commit/b462a8f1dcc03528d91c77cabc15f8575d9c378c
此问题报告如下:https://github.com/seattlerb/zentest/issues/5
更新:要解决此问题,只需升级您的 rubygems:
gem update -- system
更新2:ZenTest 4.6.1解决了这个问题。
I don't know japanese, but looking at
http://d.hatena.ne.jp/hkj/20110724
I learned that you can make it work by changing line 226 from:
to
This line was last modified in this commit: https://github.com/seattlerb/zentest/commit/b462a8f1dcc03528d91c77cabc15f8575d9c378c
This issue is reported here: https://github.com/seattlerb/zentest/issues/5
UPDATE: To solve this problem just upgrade your rubygems:
gem update --system
UPDATE 2: ZenTest 4.6.1 solves this problem.
我遇到了这个问题,发现可以通过从 rubygems 1.8.6 迁移到 1.8.5 来避免它
I had this problem and found it can be avoided by moving from rubygems 1.8.6 to 1.8.5
我只是尝试了 Gemfile 中的版本,直到问题消失。测试组件之间存在一些奇怪的不兼容性。
I just played around with versions in the Gemfile until the problem went away. There is some weird incompatibility between testing components.